Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
It's in the web.config
<httpRuntime maxRequestLength="102400" executionTimeout="360"/>
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.
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 :-)
<!-- Increase umbraco action timeouts,
prevent timeout on long running actions, like copy, creating new property etc -->
<httpRuntime maxRequestLength="204800" executionTimeout="99999"/>
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:
<httpRuntime maxRequestLength="204800" executionTimeout="99999" />
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)
Umbraco not show message when media upload is exceeded size limit. Please help to resolve it.
I'm using Umbraco 7.2.8
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,
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,
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...
Write your reply to:
Image will be uploaded when post is submitted