Skip to content
FunnelGuard

Fix guide by FunnelsGuard

File upload field rejecting files or tiny size limit: how to fix

CNV-014Medium impactPartlyBy FunnelGuardPublished Updated
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.

Where an upload failure loses the lead
  1. Visitor opens formFills name and email
  2. Attaches file6 MB phone photo or PDF
  3. Upload rejectedSize or type limit hit
  4. Form submittedNever reached
  5. Lead in CRMNever created

The visitor does everything right; the file is rejected and the rest of the funnel is lost.

Submissions by upload limitExample numbers
Submissions by upload limit (example)2 MB limit: 55 completed forms per 100 who attach a file; 10 MB limit: 88 completed forms per 100 who attach a file; 25 MB limit: 95 completed forms per 100 who attach a file036735588952 MB limit10 MB limit25 MB limitcompleted forms per 100 who attach a file

Example: illustrative numbers showing how a low limit can turn away typical files.

How to check if your site has it

Test the upload like a real visitor
  1. 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.

  2. Test on desktop and a phone

    Attach each file and submit. Note any error, spinner that never ends, or silent failure.

  3. Read the limits in the form settings

    Look for max file size and allowed extensions in your form builder.

  4. 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.

  5. Open the browser console

    In DevTools, Network tab, look for a 413 (Payload Too Large), 403 or 500 response on the upload request.

  6. Confirm the file arrives

    After a successful submit, check that the notification email or CRM record has the attachment or a working link.

Where each limit lives and what it looks like when hit
LayerSettingTypical symptom
Form toolMax file size, allowed extensionsClear message such as file too large or type not allowed
PHPupload_max_filesize, post_max_sizeUpload fails or form submits with the file missing
Web servernginx client_max_body_size, Apache LimitRequestBody413 error page
CDN or firewallRequest body size rule403 or 413 before it reaches your site
Email or CRMAttachment size capForm 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.

Raise the limit and widen the file types
  1. 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].

  2. 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.

  3. Check WordPress file type rules

    WordPress blocks some types by default. Add types only through a trusted method, and avoid allowing executable files.

nginx: allow uploads up to 25 MBnginx
server {
    client_max_body_size 25m;
}
php.ini: matching PHP limitstext
upload_max_filesize = 25M
post_max_size = 30M
max_execution_time = 120
Upload field with clear ruleshtml
<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

Fix confirmation
  • 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
Upload field before and after

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

Prevention
  • 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.

What the visitor sees

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.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: upload step with test file; no limit probing.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.