How to Increase File Upload Limits for Your CRM Site
Increasing File Upload Limits
If you are managing a site built with the CRM and encounter errors when uploading large files, you may need to adjust the PHP upload restrictions. This guide explains how to modify these limits directly from your site's dashboard by editing the .htaccess file.
Important Limitation: The method described below has a maximum reliable limit of 300MB. Setting a value higher than this may appear to work but will cause uploads to fail. For limits exceeding 300MB, server-level configuration is required.
Step 1: Access the File Manager
To edit your site's core files without using FTP, you will need a file manager plugin. From your site's admin dashboard, navigate to the Plugins section and select Add New. Search for a reputable file manager plugin, such as "WP File Manager," then install and activate it.
Step 2: Find the .htaccess File
Open the file manager plugin from your dashboard menu. Browse to your site's root directory, which is often named public_html. Look for a file named .htaccess.
Note: The .htaccess file is sometimes hidden. If you cannot see it, check the file manager's settings for an option to show hidden files and enable it.
Step 3: Edit the .htaccess File
Right-click the .htaccess file and choose the Code Editor or Edit option. Scroll to the end of the file and add the following lines of code. You can change the numerical values (e.g., 128M) to suit your needs, but remember not to exceed 300M for the upload and post size limits.
- php_value upload_max_filesize 128M
- php_value post_max_size 128M
- php_value memory_limit 2048M
- php_value max_execution_time 600
- php_value max_input_vars 10000
After pasting the code, save the file and close the editor.
Step 4: Confirm the New Limits
To verify the changes took effect, go to the Media section in your dashboard and select Add New. Below the upload area, you should see a message displaying the new maximum upload file size, such as "Maximum upload file size: 128 MB."
Troubleshooting
The old limit is still displayed: Clear your browser's cache and refresh the page. If you use any caching plugins or a CDN, clear those caches as well.
Uploads continue to fail: Confirm that the file type you are attempting to upload is supported by the platform for security reasons.
Need a limit higher than 300MB: As mentioned, this requires server-level configuration and cannot be achieved by editing the .htaccess file.
Still experiencing issues: If the limits do not update after following these steps, or if you require a configuration above 300MB, please contact our support team for assistance.