Hi, I want to increase the file upload limit, I tried it in System Settings, but it’s not working. Not able to upload more than 1mb. There are many topics on this on forum, but no clear solution provided. Can anyone help me with file upload limit?
ERPNext: v14.56.0 (version-14)
Frappe Framework: v14.60.0 (version-14)
Frappe HR: v16.0.0-dev (develop)
Below commands worked for me for increasing file limit up to 100mb at frappe level and 150mb at server level.
$ bench set-config max_file_size 104857600
$ sudo nano config/nginx.conf
Inside nginx.conf file find “client_max_body_size 50m;” and replace with “client_max_body_size 150m;”
$ sudo service nginx restart
bench --site url/ip destroy-all-sessions
bench --site url/ip clear-cache
bench --site url/ip migrate
bench start
bench --site url/ip enable-scheduler
1 Like