On this page
What this issue is
A file upload field lets a visitor attach a document or photo to a form: a CV, a quote request photo, an ID, a brief. The problem is when the field refuses files that should be fine. The usual causes are a size limit that is too small, an allowed file types list that is too narrow, or a limit set in a lower layer that the form never mentions.
Why it costs you leads or sales
People who get as far as attaching a file are usually serious. If the upload fails they rarely retry. They leave, or email you instead, or go to a competitor. Modern phones produce photos of 3 to 10 MB and often save them as HEIC, so a 2 MB limit or a JPG/PNG-only list rejects ordinary files.
- Visitor opens formFills name and email
- Attaches file6 MB phone photo or PDF
- Upload rejectedSize or type limit hit
- Form submittedNever reached
- Lead in CRMNever created
The visitor does everything right; the file is rejected and the rest of the funnel is lost.
Example: illustrative numbers showing how a low limit can turn away typical files.
How to check if your site has it
Prepare real test files
Use a 1 MB PDF, a 6 to 10 MB phone photo, a HEIC image from an iPhone, a DOCX and a file with spaces or accents in its name.
Test on desktop and a phone
Attach each file and submit. Note any error, spinner that never ends, or silent failure.
Read the limits in the form settings
Look for max file size and allowed extensions in your form builder.
Check the server limits
In WordPress, Tools > Site Health > Info > Media Handling shows the max upload size. Otherwise ask your host or read php.ini and the server config.
Open the browser console
In DevTools, Network tab, look for a 413 (Payload Too Large), 403 or 500 response on the upload request.
Confirm the file arrives
After a successful submit, check that the notification email or CRM record has the attachment or a working link.
| Layer | Setting | Typical symptom |
|---|---|---|
| Form tool | Max file size, allowed extensions | Clear message such as file too large or type not allowed |
| PHP | upload_max_filesize, post_max_size | Upload fails or form submits with the file missing |
| Web server | nginx client_max_body_size, Apache LimitRequestBody | 413 error page |
| CDN or firewall | Request body size rule | 403 or 413 before it reaches your site |
| Email or CRM | Attachment size cap | Form works but the notification is missing or bounced |
How to fix it
Decide what you really need to accept, then make every layer agree. A sensible target for most lead forms is 10 to 25 MB per file and the common formats: PDF, JPG, PNG, HEIC, DOC and DOCX. Keep the list limited to what you need, because upload fields are also a security risk.
Set the field limit
In your form plugin (for example WPForms, Gravity Forms, Contact Form 7, Fluent Forms), open the file upload field and set max file size and allowed extensions. In Contact Form 7 use [file* cv limit:10mb filetypes:pdf|doc|docx|jpg|png].
Raise PHP limits
Set upload_max_filesize and post_max_size in php.ini, .user.ini or your host's PHP settings panel. Keep post_max_size larger than upload_max_filesize.
Check WordPress file type rules
WordPress blocks some types by default. Add types only through a trusted method, and avoid allowing executable files.
Use a form or app that supports uploads
Standard contact forms in themes do not take files. Use a form app or a product page file input from an upload app and check its size and type settings.
Match the limit to your needs
In the app settings raise max size and add HEIC if customers upload phone photos.
Check the native limit
Webflow's form file upload field has fixed limits set by Webflow, so check the current limit in Webflow's documentation. If it is too small, use a third-party form or upload tool.
Tell visitors the rules
Add helper text under the field stating the accepted types and size.
Open the form builder
Go to Sites > Forms > Builder, select the File Upload element and review its allowed file types and size settings.
Test the submission
Submit a test and confirm the file appears on the contact record.
Edit the upload button
In the Wix form, select the upload field, open Settings and check the accepted file types and the maximum number and size of files. Add the formats you need.
Check the form block
Squarespace form blocks have limited file upload support. If it rejects your files, use a dedicated form tool embedded on the page.
Raise the server body limit
In nginx set client_max_body_size, then reload nginx. Make sure PHP or your app framework allows the same size.
Validate on both sides
Use the accept attribute for convenience and validate type and size on the server, since the browser check can be bypassed.
server {
client_max_body_size 25m;
}upload_max_filesize = 25M
post_max_size = 30M
max_execution_time = 120<label for="cv">Upload your CV</label>
<input type="file" id="cv" name="cv" accept=".pdf,.doc,.docx,.jpg,.jpeg,.png,.heic">
<p>PDF, Word, JPG, PNG or HEIC. Up to 25 MB.</p>How to confirm it's fixed
- A 1 MB PDF uploads and submits on desktop
- A 6 to 10 MB phone photo uploads on a real phone
- A HEIC photo is accepted, or the error clearly says what to use
- A file name with spaces or accents works
- No 413 or 500 response appears in the Network tab
- The notification email or CRM record contains the file or a working link
- The accepted types and size are shown next to the field
Before
- 2 MB limit, PDF only
- Limit hidden from visitors
- Vague or silent failure
- Server limit lower than form limit
After
- 25 MB limit, common formats incl. HEIC
- Rules shown under the field
- Clear error with email fallback
- Form, PHP, server and CDN limits match
How to prevent it happening again
- Keep a note of every layer's limit (form, PHP, server, CDN, email)
- Retest uploads after plugin, theme, PHP or host changes
- Retest after a migration, since server settings often reset
- Check the attachment size your inbox and CRM accept
- Review form tool release notes for changed limits
- Add an upload test to your regular form checks
How FunnelGuard handles this
FunnelGuard detects this issue only partly. It runs your form journey with a robot visitor and includes an upload step with a test file. If that file is rejected, the step fails and you get one alert with a screenshot and a likely cause, after a re-check from a second region.
What it does not do: it does not probe your limits. It will not try bigger and bigger files to find your maximum size, and it will not test every file type or every phone format. So a limit that blocks a 10 MB photo can pass if the test file is small.
The upload fails and the visitor gives up before submitting.
Questions people ask
Why is my form file upload not working?
Usually a limit is blocking it: the form's max file size or allowed types, PHP's upload_max_filesize and post_max_size, a web server body limit, or a CDN rule. The smallest limit wins. Test with a large file and check the Network tab for a 413 error.
Why does my form say file type not allowed?
The extension is missing from the field's allowed list. Common misses are HEIC from iPhones, DOCX, and uppercase extensions like .JPG. Add the formats you need and show them next to the field.
How do I increase the file upload size on a form?
Raise the limit in the form tool, then raise upload_max_filesize and post_max_size in PHP, and client_max_body_size if you use nginx. Reload the server and retest. Raising only one layer leaves the others blocking.
What is a good maximum file size for a contact form upload?
For most lead forms, 10 to 25 MB per file covers phone photos and typical PDFs. Choose based on what visitors really send and what your inbox or CRM can accept as attachments.
Why does my upload fail with a 413 error?
A 413 means the request body is larger than a server or proxy allows. Raise client_max_body_size in nginx, the equivalent in Apache, or check your CDN or firewall's body size rule.
Why does the form submit but the file is missing?
Often post_max_size in PHP is smaller than the upload, so PHP drops the data without a clear error. It can also be an email attachment cap. Check PHP limits and where the file is stored.
Can FunnelGuard tell me my upload size limit?
No. FunnelGuard runs an upload step with a test file and alerts if it fails, but it does not probe limits with larger files. Test large and unusual files by hand to cover that.
Related issues
- CNV-025Character limit cuts off message fieldFix guide
- CNV-002Form field renamed or removed so the lead loses dataFix guide
- CNV-003Required field marked optional (or optional marked required)Fix guide
- CNV-019Form fields too small or overlapping on mobileFix guide
- CNV-026Special characters or accents rejected in name fieldFix guide
- CNV-004Field labels missing or placeholder-only, field purpose unclearFix guide