1) Faced upload issue on DEV/PROD envt.
2) Checked code of spring boot application.properties (multiple property names for spring 1.x, 2.x,etc), none working
3) Checked code of UI angularjs (20 MB is set)
4) Checked on another alfresco project server on-premise (qa / dev). Worked there.
5) Checked by uploading 10MB file on our aws dev/prod into OOTB Alfresco share UI > My Files. Still giving the same error.
6) Tried changing the limit from server.xml of tomcat/conf
Added maxHttpHeaderSize="20000000" , also maxPostSize="-1" , also packetSize="20000000".
Restarted Alfresco tomcat, no luck.
7) Checked tomcat/webapps/manager/WEB-INF/web.xml.
Default allowed size was 50MB, changed <max-file-size> and <max-request-size> to 100MB in case if total request was high,
Still no luck
8) As the error contained '413 Request Entity Too Large' nginx (some version), tried searching for nginx settings.
Searched for nginx files in linux: Found at only these two locations:
/opt/alfresco5.2.3/tomcat/webapps/onguiportal/OnG_GIT/dist/nginx.conf
/opt/scalarizr/embedded/lib/python3.5/site-packages/scalarizr-7.11.5-py3.5.egg/scalarizr/api/nginx.py
Tried adding client_max_body_size 100M in those files , but no luck.
9) Checked if in case apache service is installed, checked the httpd.conf files, ssl.conf, workers.properties,
mod_jk, jk.conf files, but request is not going on apache, so no need to change in above apache files.
10) Raised ticket with Alfresco,
11) Raised ticket with AWS Cloud team.
After investigation
Comments by cloud team:
we changed the parameter "client_max_body_size" in the alfresco-dev-<full-domain-name>.conf wild card conf file
12) So issue of file limit found from AWS Cloud team, fixed by them and started working.
13) For production envt, need to raise a change request from Change > Create New > Normal change. Fill details and create CR.
Once approved and acted upon, it will be fixed in prod too.
Ref links (to update in stackoverflow):
https://www.keycdn.com/support/413-request-entity-too-large
https://serverfault.com/questions/56691/whats-the-maximum-url-length-in-tomcat
https://stackoverflow.com/questions/2947683/httprequest-maximum-allowable-size-in-tomcat