On this page
What this issue is
Every server caps how big a file upload can be. In PHP, upload_max_filesize sets the largest single file. post_max_size sets the largest whole request, including all form fields. Web servers add their own cap, such as client_max_body_size in Nginx or LimitRequestBody in Apache.
Why it costs you leads or sales
Upload fields sit in high-intent forms: quote requests, job applications, claims, custom orders, design briefs. The visitor has already done the work. If the file is rejected, most will not resize it and retry. They leave, and you never see the lead.
- Open formPage loads fine
- Attach 12 MB fileBrowser accepts it
- SubmitServer limit is 2 MB, request rejected
- Email and CRMNever receives the lead
- Conversion tagThank-you page never shown
The visitor fills in the form, attaches a big file and submits. The server refuses the request, so nothing after that happens.
Example: illustrative numbers for a form with a 2 MB server limit. Success drops sharply once files pass the limit.
How to check if your site has it
Note the size your form promises
Check the help text and the form plugin settings for the maximum file size and allowed types.
Read the PHP limitsWordPress
In WordPress, open Tools > Site Health > Info > Server and look at 'Upload max filesize' and 'PHP post max size'. On other PHP sites, run phpinfo() on a protected page or ask your host.
Check the web server limit
Look for client_max_body_size in Nginx config or LimitRequestBody in Apache. If you use a CDN or proxy, check its upload limit too.
Submit the form with a large file
Use a real file just under the size you advertise, such as a 9 MB PDF for a 10 MB limit. Do it as a visitor would, in a private window.
Check the logs
Look in the PHP error log and the web server error log for messages about body size or exceeded limits.
| Limit | Where it lives | Typical symptom |
|---|---|---|
| upload_max_filesize | php.ini, .user.ini | PHP error: file exceeds upload_max_filesize |
| post_max_size | php.ini, .user.ini | Form arrives empty, fields missing |
| client_max_body_size | Nginx | 413 Request Entity Too Large |
| LimitRequestBody | Apache | 413 error |
| max_execution_time / timeouts | PHP, proxy | Slow upload then timeout or 504 |
How to fix it
Set post_max_size slightly higher than upload_max_filesize, and make sure the web server limit is at least as high as both. Then restart or wait for PHP to reload.
Ask your host first
Many hosts have a PHP settings screen in their control panel (often called PHP Options or MultiPHP INI Editor). Set upload_max_filesize and post_max_size there.
Or edit .user.ini
In the site root, add the lines shown in the snippet below. Changes can take a few minutes to apply.
Check the form plugin
Plugins such as Contact Form 7 or Gravity Forms have their own file size setting. Raise it to match.
Edit php.ini or .user.ini
Set upload_max_filesize, post_max_size and, if needed, max_execution_time. Reload PHP-FPM or Apache afterwards.
Edit Nginx
Set client_max_body_size in the http, server or location block, then run nginx -t and reload.
Edit Apache
Remove or raise LimitRequestBody, and reload Apache.
Know the platform limit
Shopify hosts the server, so you cannot edit PHP or Nginx. Customer file uploads in themes or apps are limited by the platform and the app.
Check your upload app
If you use an upload app, check its file size setting and plan limits, and lower the size you advertise if needed.
Check the form field
Wix manages the server. Open the upload field settings and read the maximum file size it allows.
Match your help text
If your promise is higher than the field allows, change the text or split the upload into smaller files.
upload_max_filesize = 32M
post_max_size = 40M
max_execution_time = 120server {
client_max_body_size 40M;
}Before
- Form promises 20 MB
- upload_max_filesize is 2 MB
- Large files fail with a vague error
- Leads lost silently
After
- upload_max_filesize 32M, post_max_size 40M
- Web server limit is 40M or higher
- Form states the maximum size
- Large files arrive in inbox and CRM
How to confirm it's fixed
- Site Health or phpinfo shows the new upload_max_filesize and post_max_size
- A file just under your advertised limit uploads successfully
- A file over the limit shows a clear message, not a blank page
- The submission reaches your inbox and CRM with the attachment
- The thank-you page or confirmation loads and conversion tags fire
- No new errors in the PHP and web server logs
How to prevent it happening again
- Write the maximum file size on the form and keep it in sync with the server
- Re-test a large upload after hosting moves, PHP upgrades and plugin updates
- Keep PHP and web server limits in your migration checklist
- Check CDN, firewall and proxy upload limits when you add one
- Test with real phone photos and PDFs, not only tiny files
How FunnelGuard handles this
FunnelGuard detects this only partly. Its robot runs your form on a schedule and does fill in and submit an upload step, but that step uses small files. So it confirms that the upload field works, that the form submits, and that the test lead reaches the inbox and CRM.
It does not try files near or above your size limit. A server that accepts a small test file but rejects a 10 MB PDF will still pass the check. FunnelGuard will, however, catch related breakages such as the form failing outright or the lead not arriving.
The form looks fine until the file is bigger than the server allows.
Questions people ask
Why is my form upload failing for large files?
The file is probably bigger than a server limit. PHP's upload_max_filesize and post_max_size, or a web server setting like Nginx client_max_body_size, may be set lower than the file. The lowest limit in the chain wins, so check all of them.
How do I increase upload_max_filesize?
Edit php.ini or .user.ini, or use your host's PHP settings screen, and set upload_max_filesize to the size you need. Also raise post_max_size to slightly more than that. Then reload PHP or wait a few minutes for the change to apply.
What is the difference between upload_max_filesize and post_max_size?
upload_max_filesize caps a single uploaded file. post_max_size caps the whole form request, including all files and fields. Set post_max_size higher than upload_max_filesize, or large uploads can still fail.
Why do I get 413 Request Entity Too Large?
The web server or proxy blocked the request because the body was bigger than its limit. In Nginx, raise client_max_body_size. In Apache, check LimitRequestBody, and also check any CDN or firewall in front of your site.
How do I increase the upload limit in WordPress?
Check Tools > Site Health > Info > Server for the current values. Raise them in your host's PHP settings or in .user.ini, then check the form plugin's own file size setting. Test with a large file afterwards.
Can I fix upload limits on Shopify or Wix?
Not at server level, because the platform controls it. Check the file size limit in your upload field or app, and make your form's help text match what it really allows.
Will FunnelGuard catch a large upload being rejected?
Only partly. FunnelGuard's upload step uses small files, so it checks that the form and lead delivery work but not large-file limits. Test a file near your limit by hand after changes.
Related issues
- OPS-087Request body or header too large (413/431)Fix guide
- OPS-072Server out of disk space (uploads, sessions fail)Fix guide
- OPS-073Memory / PHP memory_limit exhausted (white screen)Fix guide
- OPS-081Form handler mail() blocked by hostFix guide
- OPS-092Hosting migration left old server serving some trafficFix guide
- OPS-084Error display on (PHP warnings shown to visitors)Fix guide