By pro.shailendra
via dotnet-tricks.com
Published: Jan 30 2013 / 22:46
Uploading a file in Asp.Net MVC application is very easy. The posted file is automatically available as a HttpPostedFileBase parameters in the action of the controller. For uploading a file on the server you required to have a file input control with in html form having encoding type set to multipart/form-data.
Comments
Yurik Tyrant replied ago:
Should check HttpPostedFileBase.ContentType also and make extension check case insensitive
Voters For This Link (3)
Voters Against This Link (0)