Skip to main content

File field

What it does​

A File field lets the visitor attach files to the form, such as a receipt, a delivery note or photos of a damaged item. You find it in the builder's left panel, in the Files & Media group, and add it by dragging it onto the form, as described in Adding fields and sections.

A new File field shows a drop area that says "Add files or drop here", with the allowed file types listed under it. The visitor clicks the area or drags files onto it. Each file is uploaded as soon as the visitor chooses it and gets a card with its name and size. A file that breaks a rule stays in the list with the reason in red, so the visitor knows what to fix.

A File field after choosing two files: receipt.pdf with its size, and receipt-photo.gif marked in red as not an allowed type

The card shows the file's full name, including the extension. A picture shows a small preview, and any other file an icon colored by its type.

To see the files, open the submission from Content → WebForms → Inbox. Pictures show as previews and other files as cards with their name and size, all the same height. The same tiles appear in the customer's account when they edit a submission, and in the review window before sending. Click a file to download it. In an email to your team, each file name is a link to the download in the admin, and it works while you're signed in. See Uploaded files.

Add File Uploads to a Form2:38Watch on YouTube

When to use​

  • Use File for documents and for photos you only need to look at, such as a receipt or a photo of a fault.
  • Use Image when you want only pictures and want large photos made smaller on upload. See Image field.

Settings​

Go to Content → WebForms → Manage Forms, click the form's name, then click Form Builder. Click the field on the form. Its settings show in the right panel, on the tabs General, Validation and Appearance. You'll change these settings most often:

  • Enable Dropzone (General tab) shows the drop area. It's on for a new field. With it off, the field shows a plain Choose File button.
  • Dropzone Text replaces "Add files or drop here" with your own words.
  • Allowed File Extensions (Validation tab) lists the file types the field accepts, one per line, such as pdf and jpg. The visitor sees them under the drop area.
  • Allowed File Size is the largest file in kilobytes (KB): 1000 KB is about 1 MB. When it's empty, the File Upload Limit (KB) of your store applies, 5000 KB unless you changed it. See Uploads & Media.
  • Maximum Files in Dropzone is how many files the visitor can add. When it's empty, the limit is 5.
  • Required (General tab) makes the visitor add at least one file.
  • Hide in Submissions (General tab) keeps the files out of the submission views, emails and PDFs. They aren't attached to notification emails either.

The table below lists every setting. Visitors see a change after you click Publish Changes in the builder's top bar.

All settings of this field
Setting Where in the panel Values Translatable
Enable Field General → Basic On or off No
Label (required) General → Basic Text Yes
Field Code General → Basic Text No
Required General → Basic On or off No
Required Error Message General → Basic Text Yes
Help Text General → Basic Formatted text Yes
Tooltip General → Basic Formatted text Yes
Enable Dropzone General → Field Settings On or off No
Dropzone Text General → Field Settings Text Yes
Hide in Submissions General → Submission Display On or off No
Allow in Staff Email Subject General → Submission Display On or off No
Submission Label General → Submission Display Text Yes
Personal Data General → Privacy By field type — Personal data, Not personal, Personal data No
Allowed File Extensions Validation → File Rules Text No
Allowed File Size Validation → File Rules Text No
Maximum Files in Dropzone Validation → File Rules Number No
Desktop Appearance → Layout Width: Full (1/1), Half (1/2), Third (1/3), Quarter (1/4), Fifth (1/5), Sixth (1/6), 2/3, 3/4, 2/5, 3/5, 4/5, 5/6; New row: on or off No
Tablet Appearance → Layout Width: Full (1/1), Half (1/2), Third (1/3), Quarter (1/4), Fifth (1/5), Sixth (1/6), 2/3, 3/4, 2/5, 3/5, 4/5, 5/6; New row: on or off No
Mobile Appearance → Layout Width: Full (1/1), Half (1/2), Third (1/3), Quarter (1/4), Fifth (1/5), Sixth (1/6), 2/3, 3/4, 2/5, 3/5, 4/5, 5/6; New row: on or off No
Show Label Appearance → Style On or off No
Help Text Position Appearance → Style Below input, Above input No
Container Classes Appearance → CSS Text No
Input Classes Appearance → CSS Text No
Custom Attributes Appearance → Advanced Text No
Inline Style Appearance → Advanced Text No

Validation​

The drop area checks each file as soon as the visitor chooses it:

Check What the visitor sees
Allowed File Extensions The file stays in the list with "Selected file has none of allowed extensions:" and the allowed types.
Allowed File Size (or the store's limit) The file stays in the list with "Selected file exceeds allowed size: 2000 kB", with your limit as the number.
Maximum Files in Dropzone When the limit is reached, the drop area disappears. If the visitor chooses more files at once than fit, the extra ones are left out without a card.
The store's hourly limit per visitor, with Enable Dropzone on "You have reached the upload limit. Please try again later." See Uploads per Visitor per Hour in Uploads & Media.

A refused file keeps its card, counts toward Maximum Files in Dropzone and stops the form from being sent. When the visitor clicks Submit, the field shows "This field has incorrect files" and, if there are too many cards, "This field allows up to 3 files. Remove any extras to continue." (with your limit). The visitor removes a card with its ×.

When Required is off, the Validation tab also has Required Unless This Field Is Filled: pick another field, and the visitor must answer at least one of the two.

Logic​

  • Start a rule: no. Only fields with options can start a rule. A Logic tab appears on a File field only once a rule shows or hides it, and lists that rule.
  • Show or hide this field: yes, from a rule that starts on a field with options. See Show or hide fields and sections.
  • Email conditions: the field is listed among a notification's conditions, but the saved answer is an internal reference to the files, not their names. Base conditions on other fields.

Limits​

  • Visitors can't attach files to a field after the form is sent. To ask for a missing file, reply to the customer. See Replying to customers.

  • Some file types are always refused, even when Allowed File Extensions lists them, because a web server or a browser could run them. Visitors see the message "Uploading of potentially dangerous files is not allowed." These are:

    • web pages and page-like files: htm, html, xhtml, xht, shtml, shtm, stm, mht, mhtml, svgz, hta, xsl, xslt;
    • server scripts: php, php2 to php8, pht, phtm, phtml, phps, phpt, phar, pl, py, jsp, jspx, asp, aspx, asa, ashx, asmx, cgi, cer;
    • programs and scripts for a computer: exe, com, bat, cmd, msi, scr, pif, lnk, reg, jar, swf, js, jse, sh, vbs, vbe, wsf, wsh, ps1, psc1;
    • server settings files: .htaccess and .user.ini.

    A name that ends with a dot or a space, or hides the extension behind invisible characters, is checked by its real extension. A file whose content is a PHP, Python or Perl script is refused too, whatever its name. A file is also stored under the type its content shows, not the type the visitor's browser claims.

  • File names with accented or non-Latin letters are accepted unless Restrict Uploaded File Names is on in Uploads & Media.

Troubleshooting​

  • The form says "This field has incorrect files". A refused file is still in the list. Remove it with its × and add a file of an allowed type and size.
  • A visitor can't add more files. The field reached Maximum Files in Dropzone. Raise the number on the Validation tab and publish the form.

What's next​

Applies to WebForms 4Last reviewed November 24, 2026