If your WordPress site is hosted with us and you are experiencing issues uploading large files, themes, or plugins (such as encountering the "exceeds the maximum upload size for this site" error), you likely need to increase your PHP size restrictions.
You can easily bypass these default limits by modifying your site's .htaccess file directly from your WordPress dashboard.
⚠️ IMPORTANT LIMITATION: The maximum upload limit that can be reliably set using the .htaccess method is 300MB.
If you input values above 300MB, the new limit might visually appear in your Media Library, but the actual upload will still fail.
For files larger than 300MB, server-level configuration is required.
Step-by-Step Guide
Step 1: Install a File Manager Plugin
To edit your site's core files without needing FTP access, you can use a plugin.
Log into your WordPress Admin Dashboard.
Navigate to Plugins > Add New from the left sidebar.
Search for "WP File Manager" (or any similar reputable file manager plugin).
Click Install Now, and then Activate.
Step 2: Locate Your .htaccess File
Open your newly installed WP File Manager from the left sidebar.
Navigate to your root directory, typically named public_html (this is the folder where your core WordPress files are installed).
Look for a file named .htaccess.
? Pro Tip: Because .htaccess is a core system file, it is sometimes hidden by default. If you don't see it, go to your File Manager settings/preferences and enable "Show Hidden Files".
Step 3: Edit the .htaccess File
Right-click on the .htaccess file and select Code Editor (or Edit).
Scroll to the very bottom of the text document.
Copy the following lines of code and paste them at the bottom. You can adjust the 128M values to fit your specific needs (up to 300M):
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
Click Save & Close (or Update) to apply the changes.
Step 4: Verify Your Changes
You should immediately verify that WordPress has recognized the new limits.
From your WordPress dashboard, go to Media > Add New.
Look below the upload area. You should see text that says: "Maximum upload file size: 128 MB" (or whatever value you set).
Troubleshooting
Still seeing the old limit? Clear your browser cache, as well as any caching plugins or server-side CDN caching you have active, then refresh the page.
Are your uploads still failing despite the limit increase? Ensure the specific file format you are trying to upload is supported by WordPress for security reasons.
Need more than 300MB? As noted above, anything higher than 300MB needs to be configured at the server level and cannot be forced through .htaccess.
Still stuck? If your limits are still not updating after following these steps, or if you need assistance configuring a limit higher than 300MB, please reach out and contact our support team!
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article