Request Entity Too Large in Azure Web App Production Environment
I'm encountering an error when I'm using an OnPost handler in a razor page to upload files.
In debug: the files upload no problem, but as soon as I push to production and try on the actual site: it gives me this error.
I have put the following on my PageModel:
I've also added the following in my program.cs:
and even this in my appsettings.json:
The app is hosted as an Azure App Service. Is there a portal side thing I need to change? Or am I going about this in the totally wrong way?
Thanks
In debug: the files upload no problem, but as soon as I push to production and try on the actual site: it gives me this error.
I have put the following on my PageModel:
I've also added the following in my program.cs:
and even this in my appsettings.json:
The app is hosted as an Azure App Service. Is there a portal side thing I need to change? Or am I going about this in the totally wrong way?
Thanks