Re: Uploading a file using MavNet
"Chris Stevenson" <[email protected]>
| Newsgroups | gmane.comp.web.mavnet.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks Ken, That will be very useful. Chris On 03/03/06, Ken Draper <[email protected]> wrote: > > 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); > > } > > >