When I post a form with an image taken from my phone I reserve the error "413 request entity too large" I realize that an image included in the form taken by the phone camera is too large, and the server rejects the request... but how can I fix this issue, I'm using Java Spring framework, and MySQL database, all of this handled with Amazon aws services.
CodePudding user response:
You have to modify your .platform
as shown in the docs.
For example, you could have the following .platform/nginx/conf.d/myconfig.conf
with content:
client_max_body_size 20M;
CodePudding user response:
I struggled with this for so long until I came across this post:
Couple things to watch out for here, if your server is restarted or you deploy a new version etc, then your nginx server will also reset and you will need to perform these changes again. Also periodically, AWS seems to reset your EC2 instance address, not sure why, but you need to perform these changes again afterwards. There must be a way of making these changes permanent but I haven't figured that part out yet.