This is the third post of file upload in mvc ,first was Upload a File In MVC , second was Upload Multiple File In MVC and this is Third "Big File Upload In MVC". In ASP.NET default size of uploading a file is 4MB if we want to upload a file bigger than 4MB size than we need to have some changes in Web.config file. Lets start
Step1:- For creating a file upload application follow this link Upload a File In MVC or Upload Multiple File In MVC
UploadFile.Cshtml
ViewBag.Title = "UploadFile";
<h2>UploadFile</h2>
@using (Html.BeginForm("UploadFile", "FileUploading", FormMethod.Post, new { enctype = "multipart/form-data" }))
<div>
<br />
<input type="file" id="files" name="files" multiple>
<input type="submit" value="Upload" />
@ViewBag.Message
</div>
}