MVC2: How do I use a HttpPostedFileWrapper to save the file?

I see how to use the HttpPostedFileWrapper when allowing the user to upload a file. So now I need to use the HttpPostedFileWrapper for that file to save that file to disk on the server.

I do not need to parse the file and read it's contents in any way. I simply need to write it to a different location on the server.

How do I do that?

newbiewebSr. Software EngineerAsked:
Who is Participating?
Carl TawnConnect With a Mentor Systems and Integration DeveloperCommented:
You should be able to just call the SaveAs() method of the wrapper, passing it a path and name to save to.
newbiewebSr. Software EngineerAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.