How to Accept File Uploads on a Form, Step by Step

Shoeb Avatar

By

·

Let people send you their files

Some requests are hard to answer from text alone. A repair shop needs to see the cracked screen, a print shop needs the artwork, a landlord needs the signed form. A file upload field lets people send that file with their request, so you are not chasing it by email afterwards.

This guide adds file uploads to a form with the free Neural Forms plugin, using a repair quote request as the example. It covers which files the field accepts, what visitors see when a file is wrong, where uploaded files end up, and the privacy points to settle before you collect anything. Everything was built and tested on a fresh WordPress site with only the free plugin installed.

What the upload field accepts

Every File Upload field in Neural Forms 1.1.2 accepts these file types, up to 5 MB per file:

GroupFile types
ImagesJPG, PNG, GIF, WEBP
PDFPDF
DocumentsDOC, DOCX, ODT
TextTXT, CSV

Anything else, such as ZIP files, videos or executables, is refused. The plugin checks the file’s real type, not only its name, so renaming a file to end in “.jpg” does not get it through. Each upload field takes one file; if you need two files, add two fields.

One thing to know before you plan: in version 1.1.2 the builder has no setting to narrow the file types or change the 5 MB limit, so a field labeled “Photo” will also accept a PDF. Say what you expect in the field’s label (“Photo of the damage”) and check uploads when they arrive.

Step 1: Add a File Upload field

  1. Go to Neural Forms > Forms and open your form, or click + New Form and start from a blank form.
  2. Add the fields you need first: name, email, and the questions about the request.
  3. Click File Upload in the field list. Click the new field and set its Label, for example “Photo of the damage”.
  4. Tick Required if you cannot answer the request without the file. Leave it unticked for files that are nice to have, and say so in the label: “Proof of purchase (optional)”.
  5. Click Save.
Form builder with two File Upload fields, one required, below the name, email, item and problem fields

Ask for the file near the end of the form. People fill in the quick fields first, and by the time they reach the upload they already know what the request is about and which file to pick.

Step 2: Add the form to a page

Add the Neural Forms block to a page, choose the form, and turn on Show Field Labels in the block’s display settings so each upload field shows what it is for. Each upload field shows a Choose File button and the size limit under it.

File upload form in WordPress on a live page with a required photo upload and an optional proof of purchase upload

What visitors see when a file is wrong

Files are checked when the form is submitted. If the file type is not accepted, the form stays on screen, the upload field is outlined, and a message names the field: “Photo of the damage: file type not allowed.” Everything else the visitor typed is kept, so they only need to choose a different file and submit again.

Upload field showing a ZIP file and the error Photo of the damage: file type not allowed

A file over the limit gets a similar message: the field label, then “file exceeds the maximum allowed size of 5 MB.” Phone photos are often larger than that, so it helps to say in the label or the page text that a screenshot or a smaller photo is fine. If your host’s PHP upload limit is lower than 5 MB, files above that limit fail with “A file upload error occurred. Please try again.” instead, so ask your host to raise it to at least 5 MB.

Where uploaded files go

Each submission arrives in Neural Forms > Entries. The upload appears in the entry as a link with the file’s original name and size. Click it to open or download the file.

Lead inbox entry with the uploaded photo shown as a link with its original file name and size
  • The file is saved in your Media Library and in the WordPress uploads folder, with a random file name (something like nf-blfawhp….png). The entry keeps the original name.
  • The admin notification email lists the file’s name, not the file itself. Open the entry to get the file.
  • Deleting an entry does not delete the file. Uploads stay in the Media Library until you delete them there.

Privacy and security: decide before you collect

Uploaded files are stored like any other file in your Media Library. The random file names make them hard to guess, but anyone who has a file’s link can open it. That is fine for photos of a broken laptop or a draft logo. It is not the right place for passports, ID cards, bank statements or medical records.

  • Ask only for files you need, and say what they are used for next to the field.
  • Mention uploads in your privacy policy: what you collect, why, and how long you keep it.
  • Set a habit for deleting files once a request is closed: delete the entry, then delete its file from the Media Library.
  • Turn on spam protection (choose Cloudflare Turnstile or reCAPTCHA v2 under Neural Forms > Settings > CAPTCHA, then tick Enable CAPTCHA on this form in the form’s Settings, under Security) on any public form that accepts files.

Test it before you publish

  • Submit once with a photo from your phone and once with a PDF, and open both from the entry.
  • Try a file type that should be refused, such as a ZIP, and check the message.
  • Try a large photo straight from a phone camera to see whether it passes the 5 MB limit.
  • Submit from a phone, where choosing a file opens the camera or photo library.
  • Check that the admin email arrives and names the file.

Frequently asked questions

Can visitors upload files for free with Neural Forms?

Yes. The File Upload field is part of the free plugin on WordPress.org, with no account or API key needed.

What file types can people upload?

Images (JPG, PNG, GIF, WEBP), PDF, documents (DOC, DOCX, ODT) and text files (TXT, CSV). Other types are refused with a message.

What is the maximum file size?

5 MB per file in version 1.1.2. The limit is shown under each upload field.

Can people upload more than one file?

Each upload field takes one file. Add a field for each file you need, and mark the extra ones as optional.

Where do I find the uploaded files?

In the entry under Neural Forms > Entries, as a link with the original file name. The files are also in your Media Library under random file names.

Are uploaded files attached to the notification email?

No. The email lists the file’s name; open the entry to get the file itself.

Collect the file with the request

Add one upload field per file, label it with what you expect, settle where files will live and when you will delete them, then test with a real phone photo. For the full feature overview, see the file upload form page, and set up spam protection before the form goes public.

Shoeb Avatar

About the author


Leave a Reply

Your email address will not be published. Required fields are marked *

✕ Black Friday Popup Cyber Monday Popup