I want to upload images, it works fine on my machine, but when I host my site on the IIS7 server for the public, I canβt upload anything.
Error
The request filtering module is configured to refuse a request that exceeds the length of the content of the request.
Most likely causes
Request filtering is configured on the web server to refuse the request because the length of the content exceeds the configured value.
What you can try
Check the configuration / system_webServer / security / requestFiltering / requestLimits @ maxAllowedContentLength in the applicationhost.config or web.config file.
system.webServer in Web.config
<system.webServer> <validation validateIntegratedModeConfiguration="false" /> <modules runAllManagedModulesForAllRequests="true" /> <security> <requestFiltering> <requestLimits maxAllowedContentLength="1048576" /> </requestFiltering> </security> </system.webServer>
As you can see, I set my maxAllowedContentLength to 1gb. Reloaded my site and still getting this error. I created the folder /uploads/ in my file system, where it should be. I donβt know what causes this error and why I cannot upload images.
skmasq Jun 03 '12 at 16:12 2012-06-03 16:12
source share