Uploading a file using MavNet
"Ken Draper" <[email protected]>
| Newsgroups | gmane.comp.web.mavnet.user |
|---|---|
| Message-ID | <[email protected]> |
Here is a code snippet that would be found in a maverick controller.
HttpPostedFile file = Request.Files[0] as HttpPostedFile;
if (file != null) {
string savedFilePath = Server.MapPath("/post") +
"\\ScheduleOverride" + UserId.ToString() + ".csv";
file.SaveAs(savedFilePath);
}