Last post Aug 26, 2016 08:28 AM by Nan Yu
Aug 26, 2016 08:15 AM|_Alpha_|LINK
I am trying to upload a file in my site then get that error.
i want to upload file to my sit ,what shoud i do?
Aug 26, 2016 08:28 AM|Nan Yu|LINK
The 4MB default is set in machine.config, but you can override it in you web.config. For instance, to expand the upload limit to 20MB, add below code to web.config:
<httpRuntime executionTimeout="240" maxRequestLength="20480" />
IIS7(and later version) has a built-in request scanning which imposes an upload file cap which defaults to 30MB. To increase it, you also need to add the lines below:
<requestLimits maxAllowedContentLength="3000000000" />