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);

}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.