I need to test a file upload component that will be accepting very large files. I want to test locally in my development environment but since I use IIS Express instead of I
You basically need to set both in web.config maxRequestLength
and maxAllowedContentLength
to upload files.
maxRequestLength
Indicates the maximum file upload size supported by ASP.NETmaxAllowedContentLength
This specifies the maximum length of content in a request supported by IIS. Note:maxRequestLength
is in kilobytes & maxAllowedContentLength
is in Bytes
By default, Machine.config is configured to accept HTTP Requests upto 4096 KB (4 MB) and it is reflected in all your ASP.NET applications. You can change the Machine.config file directly, or you can change only the Web.config file of the application(s) you want to