upload size limit - rtCamp/Frappe-Manager GitHub Wiki

Increase Upload Size Limit

Adjusting Size Limit in global-nginx-proxy

Adjust the client_max_body_size directive value as needed.

Global Configuration

To apply the upload size limit to all sites, create a file named increase_upload_size_limit.conf (the name can be anything) in the ~/frappe/services/nginx-proxy/confd directory with the following content:

client_max_body_size 100m;

Site-Specific Configuration

For a specific site, such as example.com, create a file named example.com_location (the name can be anything) in the ~/frappe/services/nginx-proxy/vhostd directory with the following content:

client_max_body_size 100m;

After making the above changes, restart global-nginx-proxy using the following command

fm services restart global-nginx-proxy

Configuring Bench nginx

Edit the file located at ~/frappe/sites/<bench name>/configs/nginx/conf.d/default.conf and modify the client_max_body_size directive:

client_max_body_size 100m;

After making the above changes, restart global-nginx-proxy using the following command

fm start <bench name> -f

Changing the Max Upload Size in Frappe

This can be done via the dashboard or by editing site_config.json.

Using Frappe Desk

  1. Open Frappe Desk.
  2. Navigate to Search > System Settings.
  3. In the Files tab, change the Max File Size (MB) field.

Using site_config.json

  1. Open site_config.json in your preferred editor.
  2. Add the key "max_file_size": "104857600" (100 MB), with the value in bytes.
⚠️ **GitHub.com Fallback** ⚠️