Blog

Change the max file size for FileUpload control in ASP.NET

As we all know that the default max file size that the FileUpload control is using is 4 MB.
I was trying to upload a file using FileUpload control provided in ASP.NET but the file size was larger than 4 MB so I was not be able to upload the file.
I had to change the maxRequestLength in HTTPRuntime section in the Web.config to increase the file size.

<system.web>
  <httpRuntime maxRequestLength="25600" />
</system.web>

Share this post



Leave a comment


Previous Post

Next Post


\