Skip to main content
Form Fields

Bit Form – Advanced File Upload Field

Estimated reading: 17 minutes 22 views

Summary: Add an Advanced File Upload field to Bit Form: drag and drop several files, limit types, sizes and count, preview, crop or resize images and email the files.

The Bit Form Advanced File Upload field is a drag-and-drop upload area with file lists, progress, image previews and image editing. Visitors drop files onto the area or browse for them, and you control the number, type and size of the files.

Availability: Bit Form Pro.

When to use the Advanced File Upload field

Use it when visitors upload several files or images and should see what they added before sending: application documents, photos for a claim, design files. For a single file with a simple button, the free File Upload field is enough. Advanced File Upload cannot be placed inside a Repeater.

Add the Advanced File Upload field

In the form builder, open Add Fields, then click Advanced File Upload in Advanced Fields or drag it onto the form. A new field shows a Drag & Drop your files or Browse area and accepts one file. See the Form Fields Overview for other ways to add fields.

Example: supporting documents on a job application

In a job application, Supporting Documents accepts up to three PDF, Word or image files of at most 5 MB each, so applicants can add certificates and reference letters. The helper text tells applicants the limits. The settings below are shown with the values this example uses.

Adding files with Browse and removing one from the list (default texts, before the labels were customized):

Animation: a visitor adds two pdf files to supporting documents with browse and removes one from the list

Common settings

The Advanced File Upload field also has the settings that most fields share. They work the same on every field, so they are explained once in Common Field Settings and Field Validation. Click a setting to read how it works:

Advanced File Upload field settings

The field-specific settings sit in three places: the Basic group and File type validation on the Basic tab, and the capture, style, size and image options on the Advanced tab.

Basic group

The Basic group on the Basic tab decides how many files visitors can add, how they add them and when the files are uploaded.

Basic group of the advanced file upload field with each setting numbered: multiple file upload, allow file browse, drag n drop, allow copy to pasting of files, allow reorder files, upload on select, full page droppable, labels customization, maximum file set to 3 and maximum parallel upload set to 2, next to the supporting documents field on the canvas
  1. Multiple file upload
  2. Allow File Browse
  3. Drag n Drop
  4. Allow copy to Pasting of files
  5. Allow reorder files
  6. Upload on select
  7. Full page droppable
  8. Labels Customization
  9. Maximum File
  10. Maximum Parallel Upload
  11. The Supporting Documents field on the canvas.

Multiple file upload (1)

Lets visitors add more than one file to the field. It is off for a new field, so the field holds a single file, and a file added later replaces it. Turn it on whenever visitors may need to send several documents, as in the example, and limit the number with Maximum File.

Allow File Browse (2)

On by default. Visitors can click the upload area or the Browse link to open their device’s file picker. Turn it off only when files must arrive another way, for example by drag and drop on a kiosk; visitors can then still drop or paste files.

Drag n Drop (3)

On by default. Visitors can drag files from their desktop or file manager and drop them on the upload area. Keep it on for desktop visitors, who expect to drop files; it has no effect on phones.

Allow copy to Pasting of files (4)

On by default. Visitors can copy a file or a screenshot and paste it with Ctrl+V (Cmd+V on a Mac) while the form is open. Useful for forms that ask for screenshots, such as bug reports.

Allow reorder files (5)

Off by default. When on, visitors can drag the files in the list into a different order, for example to put the most important certificate first. It only matters when Multiple file upload is on.

Upload on select (6)

Off by default. Decides when files travel to your site:

  • Off: the files stay in the visitor’s browser and are sent together with the form when the visitor clicks submit. Each file shows an upload button (an arrow) that sends that file early.
  • On: each file is uploaded as soon as it is added, with a progress indicator. Bit Form checks the file and keeps it in a temporary folder; when the form is submitted, the file moves to the entry. If the visitor removes the file, it is deleted from the server.

Turn it on for large files, so the upload runs while the visitor fills in the rest of the form and the final submit is quick.

Full page droppable (7)

Off by default. When on, a file dropped anywhere on the page lands in this field, not only on the upload area. Use it on pages where this is the only upload field, such as a dedicated document upload form.

Labels Customization (8)

The pencil button opens the Placeholder / Label / Title edit window, where you change every text the upload area shows: the prompt in the empty area, the status of each file and the hidden names of the buttons. Use it to match your site’s wording or to translate the texts.

Placeholder / label / title edit window shown at the top and scrolled to the end, listing all 22 texts from placeholder to button process item; placeholder is set to a custom text with the browse link

Each box shows the default text as a grey placeholder. Type a new text to replace it; clear the box to go back to the default.

SettingDefault textWhere it appears
PlaceholderDrag & Drop your files or BrowseThe prompt in the empty upload area.
File LoadingLoadingWhile the browser reads a file that was just added.
Invalid FieldField contains invalid filesThe validation message of the field while it holds a rejected file.
File Waiting For SizeWaiting for sizeWhile the file size is not known yet.
FileSize Not AvailableSize not availableWhen the file size cannot be read.
File Load ErrorError during loadWhen the browser cannot read the file.
File ProcessingUploadingWhile a file is uploading.
File Processing CompleteUpload completeAfter a file has uploaded.
File Processing AbortedUpload cancelledWhen the visitor cancels an upload.
File Processing ErrorError during uploadWhen an upload fails. If your site rejects the file, its own message is shown instead, for example that the file type is not allowed.
File Processing Revert ErrorError during revertWhen an uploaded file cannot be taken back.
File Remove ErrorError during removeWhen a file cannot be removed.
Tap To Canceltap to cancelUnder the status while a file uploads.
Tap To Retrytap to retryUnder an error, when the visitor can try again.
Tap To Undotap to undoUnder Upload complete, when the visitor can take the upload back.
Button Remove ItemRemoveName of the remove button (an X icon), read by screen readers.
Button Abort Item LoadAbortName of the button that stops loading a file.
Button Retry Item LoadRetryName of the button that loads a file again.
Button Abort Item ProcessingCancelName of the button that cancels an upload.
Button Undo Item ProcessingUndoName of the button that takes an upload back.
Button Retry Item ProcessingRetryName of the button that uploads a failed file again.
Button Process ItemUploadName of the upload button (an arrow) shown when Upload on select is off.

In the example, Placeholder is Drop certificates or references here, or <span class="filepond--label-action">Browse</span>. The span keeps Browse underlined as a link; without it, the word is plain text. On the form:

Supporting documents field on the form showing the custom placeholder drop certificates or references here, or browse

Maximum File (9)

The largest number of files the field accepts, for example 3. Leave it empty for no limit. It works together with Multiple file upload. Files added beyond the limit are left out without a message, so state the limit in the helper text, as the example does.

Maximum Parallel Upload (10)

How many files upload at the same time; the default is 2. It applies to uploads that start before submit (Upload on select, or the upload button of a file). A higher value such as 3 or 4 finishes several small files sooner; keep it low if visitors are often on slow connections.

File type validation

Limits the field to the file formats you choose and sets the messages for a file of another type. It is on the Basic tab, below the Basic group.

File type validation turned on with pdf, word, jpeg and png selected in allowed file mime type, invalid file message error set to this file type is not accepted and file types message error set to upload a pdf, word, jpeg or png file
  1. File type validation: the switch that turns the check on. The settings below do nothing while it is off.
  2. Allowed File Mime Type: the formats to accept. Click the box and choose from the list, for example Adobe Portable Document Format (PDF) (.pdf), both Microsoft Word types, JPEG images and Portable Network Graphics (.png). The file picker on the visitor’s device then shows only these formats.
  3. Invalid File Message Error: the first line of the error on a file of another type. The default is File is of invalid type. Example: This file type is not accepted.
  4. File types Message Error: the second, smaller line that tells the visitor what to upload instead. The default is Expects {allButLastType} or {lastType}. Example: Upload a PDF, Word, JPEG or PNG file.
  5. The Supporting Documents field on the canvas.

The placeholders {allButLastType}, {lastType} and {allTypes} are replaced with the technical type names, such as application/pdf, so a plain sentence that names the formats reads better for visitors.

Note: Your site checks the type again when the file arrives. Bit Form always rejects files that could run code on your site, such as PHP, HTML, JavaScript and executable files, even if you select them here.

Advanced tab

The Advanced tab holds the phone camera option, the look of the upload area, file size limits and the image options. Each setting below is shown switched on with an example value.

Capture

On phones and tablets, Capture opens the camera when the visitor taps the upload area, so they can photograph a document instead of choosing a file. Desktop browsers ignore it.

Advanced tab with capture set to environment camera and the file style settings: panel layout compact, remove button left, process button right, load indicator right and progress indicator right
  1. Capture, set to Environment Camera.
  2. Panel Layout, set to Compact.
  3. Remove Button
  4. Process Button
  5. Load Indicator
  6. Progress Indicator
  7. The Supporting Documents field on the canvas.
OptionWhat happens on a phone
Select (default)No camera preference: the phone offers its usual choice of camera, photo library or files.
OffMeant to turn capture off. To keep the normal file choice, leaving the setting on Select is the clearer choice.
OnAsks the phone to open its camera; the browser picks which one.
User CameraOpens the front camera, for a selfie or a profile photo.
Environment CameraOpens the rear camera, for photographing documents, receipts or damage.

Example: a visitor applying from a phone taps the field and the rear camera opens, ready to photograph a printed certificate. With a camera option set, many phones open the camera directly and skip the file list, so use it only when a fresh photo is what you want. Allow image types in Allowed File Mime Type so the photo is accepted.

File Style

File Style changes the layout of the upload area and where the buttons and indicators sit in each file row. Each setting starts on Select, which keeps the default.

  • Panel Layout (2): Select shows the standard upload area with the file list below it. Compact uses less space around the area and the files, for long forms. Circle turns the area into a round drop zone, suited to a single profile photo; choosing it also makes the field narrower on the canvas.
  • Remove Button (3): where the remove button (X) sits in a file row: Left (default), Right, Center or Bottom.
  • Process Button (4): where the upload button (arrow) sits, shown when Upload on select is off. Default Right.
  • Load Indicator (5): where the spinner appears while the browser reads a new file. Default Right.
  • Progress Indicator (6): where the upload progress ring appears while a file uploads. Default Right.

Example: to put the remove button where most visitors look for a close button, set Remove Button to Right and move Process Button to Left so the two do not overlap.

File size validation

Turn on File size validation to set size limits. Tick a limit to use it, enter a whole number and choose MB or KB. Each limit has two message boxes: the first line of the error and a second line with the limit. In the second line, {filesize} is replaced with the limit.

File size validation turned on with min file size 10 kb, max file size 5 mb and max total file size 15 mb, each with a custom error message
  1. File size validation: the switch for all size limits.
  2. Min File Size: rejects files smaller than the limit. Example: 10 KB, with the message This file is too small to be a readable document, to catch empty or broken files.
  3. Max File Size: rejects any single file larger than the limit. Example: 5 MB, with This file is larger than 5 MB.
  4. Max Total File Size: limits all files of the field together. Example: 15 MB (three files of 5 MB), with Your files together are larger than 15 MB.
  5. The Supporting Documents field on the canvas.

When a message box is empty, the default text is used: File is too small / Minimum file size is {filesize}, File is too large / Maximum file size is {filesize}, and Maximum total size exceeded / Maximum total file size is {filesize}. Use whole numbers, such as 1500 KB instead of 1.5 MB. Your server’s own upload limit still applies, so keep Max File Size below it.

Image Preview

Shows a thumbnail of each image the visitor adds, so they can check they picked the right photo or scan. It applies to image files only.

Image preview turned on with image preview min height 44, image preview max height 256 and preview height 180, and video/pdf preview turned on
  1. Image Preview: the switch.
  2. Image Preview Min Height: the smallest thumbnail height in pixels. Default 44.
  3. Image Preview Max Height: the largest thumbnail height in pixels. Default 256. Between the two, the height follows the image’s shape.
  4. Preview Height: a fixed height for every thumbnail, which overrides the minimum and maximum. Example: 180, so all previews line up at the same height.
  5. Video/Pdf Preview, described below.
  6. The Supporting Documents field on the canvas.

Video/Pdf Preview

A switch without further options (5 in the figure above). When on, PDF files open in a small built-in viewer in the file list, and video and audio files get a player, so visitors can check the content before they submit. On the form, with both previews on:

Supporting documents field on the form with a pdf certificate shown in an embedded pdf viewer and a scanned reference letter shown as an image preview

The PDF certificate appears in the browser’s PDF viewer and the scanned reference letter as a 180-pixel image preview. The PDF viewer can cover the file name in the row.

Image Crop

Crops every image to a fixed shape before it is uploaded. The crop is taken from the centre of the image automatically; visitors do not get a crop tool.

Image crop turned on with crop aspect ratio 1:1; image transform below it has switched on automatically
  1. Image Crop: the switch.
  2. Crop Aspect Ratio: the shape as width:height. Examples: 1:1 for a square profile photo, 16:9 for a banner, 3:4 for a passport-style photo.
  3. Image Transform switches on automatically, because it applies the crop to the uploaded file.
  4. The Supporting Documents field on the canvas.

Use Image Crop for photos only. For documents such as the certificates in this example, leave it off, because cropping would cut off part of the page. Turning it on also sets Image Resize Mode to Cover.

Image Resize

Scales every image to a target size before it is uploaded. Large phone photos become smaller files that upload faster and use less storage.

Image resize turned on with image resize width 1600, image resize height 1600 and image resize mode contain; image transform is on
  1. Image Resize: the switch.
  2. Image Resize Width: the target width in pixels. Example: 1600.
  3. Image Resize Height: the target height in pixels. Example: 1600. If you fill in only one of the two, the other uses the same value.
  4. Image Resize Mode: how the image fits the target size. Example: Contain.
  5. Image Transform switches on automatically, because it writes the resized image.
  6. The Supporting Documents field on the canvas.
  • Contain: the whole image fits inside the target box and keeps its shape. A 4000 × 3000 photo becomes 1600 × 1200. Best for documents.
  • Cover (set when you turn Resize on): the image fills the whole box and the parts that stick out are cut off.
  • Force: the image is stretched to exactly the target size, which can distort it.

Images smaller than the target are enlarged to it. With 1600 × 1600 and Contain, scanned letters stay readable while the files shrink.

Image Transform

Creates the new image file in the visitor’s browser after cropping or resizing, and can change its format and quality. It cannot be switched off while Image Crop or Image Resize is on.

Image transform turned on with image output type image/jpeg, transform output quality 80 and client transforms left on select
  1. Image Transform: the switch.
  2. Image Output Type: Select keeps each image’s own format; Image/jpeg or Image/png converts every image. Example: Image/jpeg, the smallest files for photos and scans.
  3. Transform Output Quality: the JPEG quality from 0 to 100; the grey 94 is a suggestion. Example: 80, a good balance of size and sharpness. Lower values give smaller, blurrier files.
  4. Client Transforms: which changes to apply. Select applies all of them, Resize only the resize and Crop only the crop.
  5. The Supporting Documents field on the canvas.

Note: Image Crop, Image Resize and Image Transform change images in the visitor’s browser before upload. For the most reliable result, also turn on Upload on select, so each image is processed and uploaded as soon as it is added.

Image validate size

Rejects images whose dimensions are too small or too large, for example scans that are too small to read. Turn on the switch, then click the pencil next to Edit Options to set the limits.

Image validate size turned on with its edit options button
  1. Image validate size: the switch.
  2. Edit Options: opens the Image Validate Customization window.
  3. The Supporting Documents field on the canvas.
Image validate customization window shown at the top and scrolled to the end, with min width 600, min height 600 and too small error message set to this image is too small to read
SettingDefaultWhat it does
Min Width / Min Height1The smallest width and height in pixels. Example: 600 and 600.
Max Width / Max Height65535The largest width and height in pixels.
Label Format Error MessageImage type not supportedShown when the browser cannot read the image.
Too Small Error MessageImage is too smallFirst line when an image is under the minimum. Example: This image is too small to read.
Too Big Error MessageImage is too bigFirst line when an image is over the maximum.
Min Size Error MessageMinimum size is {minWidth} × {minHeight}Second line with the minimum size.
Max Size Error MessageMaximum size is {maxWidth} × {maxHeight}Second line with the maximum size.
Min Size Resolution / Max Size Resolutionempty (no limit)The total number of pixels (width × height). Example: 1000000 for one megapixel.
Resolution too low Error MessageResolution is too lowFirst line when an image has fewer pixels than the minimum.
Resolution too high Error MessageResolution is too highFirst line when an image has more pixels than the maximum.
Min Resolution Error MessageMinimum resolution is {minResolution}Second line with the minimum resolution.
Max Resolution Error MessageMaximum resolution is {maxResolution}Second line with the maximum resolution.

The values are kept as you type; Close closes the window. The limits apply to image files only; PDF and Word files are not checked.

How visitors see rejected files

A file that fails a check stays in the list with a red row and the two message lines, so the visitor knows what to fix. They remove it with the X and add another file. With the example settings:

Three rejected files in the supporting documents list: design-samples. Zip with this file type is not accepted, portfolio-print. Pdf with this file is larger than 5 mb, and id-badge-photo. Jpg with this image is too small to read
  • design-samples.zip: the type is not allowed, so it shows the two File type validation messages.
  • portfolio-print.pdf (12.6 MB): over Max File Size.
  • id-badge-photo.jpg (480 × 679 pixels): under the 600 × 600 minimum of Image validate size.

Using the uploaded files

Uploaded files are stored in the Bit Form uploads folder for the entry. The entry lists them, and the field’s Smart Tag inserts links to them in emails. You can also attach them to notification emails. See Smart Tags and Email Template.

In Conditional Logic, use Is Empty or Is Not Empty to react to whether files were added.

Limitations

  • Advanced File Upload cannot be placed inside a Repeater.
  • Min File Size, Maximum File and the Image validate size limits are checked only in the visitor’s browser. Allowed file types and Max File Size are also checked on the server.
  • Max Total File Size is checked on the server only when Upload on select is off, because with it on each file arrives separately.
  • Files added beyond Maximum File are left out without a message.
  • Capture works only in mobile browsers.

FAQ

How is this different from the File Upload field?

Advanced File Upload adds drag and drop, a file list with progress, previews and image editing. File Upload is a simple button.

Can visitors take a photo with their phone?

Yes. Set Capture on the Advanced tab to open the camera on phones.

Where do I set the maximum number of files?

Turn on Multiple file upload and set Maximum File.

How do I change the texts of the upload area?

Click the pencil next to Labels Customization in the Basic group and type the new texts. Empty boxes keep the defaults.

Share this Doc

Bit Form – Advanced File Upload Field

Or copy link

CONTENTS
Before you go
The #1 Affordable Form Plugin in the Industry

10,000+

Trusted Businesses

5 Star Rated

on WordPress.org
shield
No Risk: Get a “No-Questions-Asked” refund if Bit Form is not the right fit for your project.

Subscribe

×
Cancel