How to increase media upload size in backoffice umbraco 9
Hi
I am trying to upload a zip file in media section in umbraco backoffice with size of 62 MB, but getting error. My application is host on IIS and i've added the web.config with
<?xml version="1.0"?>
<configuration>
<system.webServer>
<security>
<requestFiltering>
<!-- ~ Below is the number of bytes allowed, 4GB is the maximum -->
<requestLimits maxAllowedContentLength="1024000000"/>
</requestFiltering>
</security>
</system.webServer>
</configuration>
but still getting below error
also updated the value in app.settings
"Runtime": {
"MaxRequestLength": 1024000000
}
but still no luck,
my umbraco version is 9.5.2 am i missing any configuration or any one
can help?
I'm trying to get this to work on Umbraco 10 on Azure and it doesn't seem to work as expected.
Documentation states that if nothing is set, then there's no limit, but that doesn't seem to be the case, it seems the limit is somewhere around 60 Mb.
I tried setting this in appsettings.config as per documentation, but the console still says "The page was not displayed because the request entity is too large" as the OP post.
I even tried adding these settings to the auto-generated web.config in azure, but that doesn't help either.
I also found this issue in the issue-tracker(https://github.com/umbraco/Umbraco-CMS/issues/12239) where it seems both methods (appsettings.config and web.config) is needed to get it to work, but so far no luck..
As crazy as it sounds, I believe this is actually a .NET and Azure App Service issue, not an Umbraco issue. The "request entity is too large" error is from .NET itself, and in my testing I didn't find a way to adjust the settings via Web.config on Azure App Service. I'm still looking for a way around this. In my case, I was trying to provide a large download, but I believe the same limitation is at play for uploads here.
Changing the config seems to have worked for some people, though, so maybe try once more and restart the application manually afterward.
Not sure what is happening here but what I found works after mutiple attempts is addding this to the web.config that is located in the project root along side all those dlls files.
PLEASE NOTE
DO NOT ADD THOSE APPSETTINGS.CONFIG SETTINGS!!!
When I added those I was getting errors every time.
When I just stuck to the web.config settings it worked.
How to increase media upload size in backoffice umbraco 9
Hi
I am trying to upload a zip file in media section in umbraco backoffice with size of 62 MB, but getting error. My application is host on IIS and i've added the web.config with
but still getting below error
also updated the value in app.settings
but still no luck,
Thanks
Does it upload small files ok?
Seems a weird error to throw for a file size issue
adding below code to web.config works
Hi. The best way is described here: https://our.umbraco.com/documentation/Reference/Configuration/RuntimeSettings/
I'm trying to get this to work on Umbraco 10 on Azure and it doesn't seem to work as expected.
Documentation states that if nothing is set, then there's no limit, but that doesn't seem to be the case, it seems the limit is somewhere around 60 Mb.
I tried setting this in appsettings.config as per documentation, but the console still says "The page was not displayed because the request entity is too large" as the OP post.
I even tried adding these settings to the auto-generated web.config in azure, but that doesn't help either.
I also found this issue in the issue-tracker(https://github.com/umbraco/Umbraco-CMS/issues/12239) where it seems both methods (appsettings.config and web.config) is needed to get it to work, but so far no luck..
Any ideas?
As crazy as it sounds, I believe this is actually a .NET and Azure App Service issue, not an Umbraco issue. The "request entity is too large" error is from .NET itself, and in my testing I didn't find a way to adjust the settings via Web.config on Azure App Service. I'm still looking for a way around this. In my case, I was trying to provide a large download, but I believe the same limitation is at play for uploads here.
Changing the config seems to have worked for some people, though, so maybe try once more and restart the application manually afterward.
same issue for me , i tried to remove azuer storage and try upload file with size 60 MB it works fine in localhost but online no
i tried that solution adding web config
have you also tried adding maxRequestLength ?
I also think your maxAllowedContentLength is not correct, the value is in bytes so you have set it to 10MB (roughly)
Web.Config/system.web/httpRuntime/maxRequestLength (in kilobytes)
Unit of measurement: kilobytes
Default value 4096 KB (4 MB)
Max. value 2147483647 KB (2 GB)
Web.Config/system.webServer/security/requestFiltering/requestLimits/maxAllowedContentLength (in bytes)
Unit of measurement: bytes
Default value 30000000 bytes (28.6 MB)
Max. value 4294967295 bytes (4 GB)
I had this issue before, I added web.config like this:
ps: u may don't have web.config at all needs to be added manually mine didn't exist before I added it myself.
Also in my UmbracoAuthorizedJsonController, I added this code to my Action:
I am using Umbraco 10.
I hope it helps you!
Hi,
Umbraco 13 + IIS
Not sure what is happening here but what I found works after mutiple attempts is addding this to the web.config that is located in the project root along side all those dlls files.
PLEASE NOTE
DO NOT ADD THOSE APPSETTINGS.CONFIG SETTINGS!!!
When I added those I was getting errors every time. When I just stuck to the web.config settings it worked.
is working on a reply...