![]() You may also need to restart your Web site (not the whole server) to enable the setting. ![]() Note that the maxAllowedContentLength is in BYTES not kilobytes. In many cases, the system.webServer node will already be in the file, so just add the security node within that. If you add the above code to the web.config file for your site, you can control the maximum upload size for your site. Luckily, there is an alternate solution that can be enabled at the site level rather than server-wide. The article also doesn't say where to ADD the entry requestLimits node if it isn't already there. ![]() So, my assumption on this is that the 30MB limit is somewhere internal to IIS7. However, in my case, this property was never in the file to begin with. The docs from MicrosoftĪre a little confusing on this, so I thought I would try to clarify.Īccording to the following article, you can “Remove the maxAllowedContentLength property.” from the nfig file in IIS7 to lift the 30MB limit. Oddly, it returns a 404 error if someone uploads something larger than 30MB. By default, IIS7 limits file upload to 30MB.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |