I will be hosting it in IIS but at present its on my local machine.
Also how is web.config related to this scenario as i only have appsettings.json?
If a config files is still required, where would that need to be placed?
What should it contain (max size for a file upload would be 500MB for example)?
Do i still need the appsettings.json file?
but i dont see the relevance of having another config file?
Not saying you are incorrect but more that why on a new platform i still need an old config file?
The web.config is used by iis, appsettings.json is not, that is part of your application. When running locally if it is using iisexpress then you will need to increase the limit in web.config too.
On the server under the site's root directory, create a new config file and have the following content?
<system.web>
<!-- Measured in kilobytes -->
<httpRuntime maxRequestLength="1048576" />
</system.web>
As for local only the changes in the appsettings would be enough? Or if they dont work then to add a web.config to the root with the content above and that would resolve? Is that correct?
Still cant increase the upload file size??
Hi
Im running Umbraco 10 and when i upload a large file to the Media area, i always get a 413 error. I tried adding the below to my appsettings.json
from https://docs.umbraco.com/umbraco-cms/reference/configuration/maximumuploadsizesettings
but this doesnt do the trick? What am i missing?
Are you hosting site in IIS? if yes then you may need to set max sizes in web.config
Hi Huw
I will be hosting it in IIS but at present its on my local machine.
Also how is web.config related to this scenario as i only have
appsettings.json
?If a config files is still required, where would that need to be placed? What should it contain (max size for a file upload would be 500MB for example)? Do i still need the appsettings.json file?
but i dont see the relevance of having another config file?
Not saying you are incorrect but more that why on a new platform i still need an old config file?
Thanks
The web.config is used by iis, appsettings.json is not, that is part of your application. When running locally if it is using iisexpress then you will need to increase the limit in web.config too.
Some info here https://stackoverflow.com/questions/38698350/increase-upload-file-size-in-asp-net-core
On the server under the site's root directory, create a new config file and have the following content?
As for local only the changes in the appsettings would be enough? Or if they dont work then to add a
web.config
to the root with the content above and that would resolve? Is that correct?Yes add web.config to the root folder of app, not wwwroot.
is working on a reply...