maxRequestLength - Attribute limits the file upload size for ASP.NET application. This limit can be used to prevent denial of service attacks (DOS) caused by users posting large files to the server. The size specified is in kilobytes. As mentioned earlier, the default is "4096" (4 MB). Max value is "1048576" (1 GB) for .NET Framework 1.0/1.1 and "2097151" (2 GB) for .NET Framework 2.0.
executionTimeout - Attribute indicates the maximum number of seconds that a request is allowed to execute before being automatically shut down by the application. The executionTimeout value should always be longer than the amount of time that the upload process can take.
When anyone need this, I add this code to web.config. It extend timeout for long actions (like copy etc) and allow big files upload, and limit this settings to backend only. (I primary note this here to myself :-)
<!-- Increase umbraco action timeouts,
prevent timeout on long running actions, like copy, creating new property etc -->
<location path="umbraco">
<system.web>
<httpRuntime maxRequestLength="204800" executionTimeout="99999"/>
</system.web>
</location>
There is an error message (red bar appears temporarily at the bottom of the page) if you try to upload a file to the Media area, but if you upload via a Media Picker property there is no error message (not on 7.3.1 anyway)
Hi,
We are looking at this, can anyone confirm if this only affects the limit of files uploaded through umbraco into the media area? or will it also affect content imported in other ways? Thanks,
Matt
Hi,
just bumping this one - we want to set a file size limit for our media area - can anyone confirm that this setting will only affect that and not other data that we import into umbraco using APIs etc,
Thanks,
Matt
Media file size limit
Hi all,
Does anyone know how to change the media upload file size limit? I can't see a setting in web.config which is where I would have thought it would be.
Thank you!
Hi Dan,
It's in the web.config
maxRequestLength - Attribute limits the file upload size for ASP.NET application. This limit can be used to prevent denial of service attacks (DOS) caused by users posting large files to the server. The size specified is in kilobytes. As mentioned earlier, the default is "4096" (4 MB). Max value is "1048576" (1 GB) for .NET Framework 1.0/1.1 and "2097151" (2 GB) for .NET Framework 2.0.
executionTimeout - Attribute indicates the maximum number of seconds that a request is allowed to execute before being automatically shut down by the application. The executionTimeout value should always be longer than the amount of time that the upload process can take.
Cheers,
/Dirk
A-ha! My application must be running on defaults as there are no settings like that in web.config so I'll create them. Thanks Dirk, much appreciated.
When anyone need this, I add this code to web.config. It extend timeout for long actions (like copy etc) and allow big files upload, and limit this settings to backend only. (I primary note this here to myself :-)
Petr
This worked perfectly. I copied and pasted the syntax above near the bottom of the web.config and can now upload larger file sizes. Thanks!
When working with IIS 7+, also requires adding requestFiltering under the system.webServer section:
awesome. worked perfectly. thanks
Dirk De Grave's solution works fine.
But Umbraco should show some message if the limit is exceeded. Images just disappear and there is no message as of now.
As @Chaitanywa said. Why there is no error message?
There is an error message (red bar appears temporarily at the bottom of the page) if you try to upload a file to the Media area, but if you upload via a Media Picker property there is no error message (not on 7.3.1 anyway)
Hi all,
Umbraco not show message when media upload is exceeded size limit. Please help to resolve it. I'm using Umbraco 7.2.8
Hi, We are looking at this, can anyone confirm if this only affects the limit of files uploaded through umbraco into the media area? or will it also affect content imported in other ways? Thanks, Matt
Hi, just bumping this one - we want to set a file size limit for our media area - can anyone confirm that this setting will only affect that and not other data that we import into umbraco using APIs etc, Thanks, Matt
Hi Matt, This will allow the server to upload larger files and wait longer to upload them.
Maybe use JS, HTML 5 and a controller to double-check file sizes if uploading via form or API
is working on a reply...