I deployed an ASP.NET Core Web App using AWS Elastic Beanstalk (in Visual Studio 2019, Windows 10). My App has an upload feature but it encounters a 413 Error (Request Entity Too Large) during Upload. I read that increasing the nginx client_max_body_size property will solve this issue.
Question: Is there a way to add this nginx configuration (client_max_body_size) in the appsettings.json or anywhere in the codebase specific to ASP.NET?
Update: I tried both solutions from this post (Both .ebextensions and .platform) Increasing client_max_body_size in Nginx conf on AWS Elastic Beanstalk
Folders Structure tried:
- ~/ASP_Project_Folder/.ebextensions
- ~/ASP_Project_Folder/.platform