Drag and Drop File Upload

A WordPress file upload field for adding different media to the site via a form.

drag-and-drop file upload for wordpress

Discover a Smarter Way to Handle File Uploads via Forms

Benefit from the advanced drag-and-drop file upload WordPress functionality. Using the JetFormBuilder Pro Addon, you can allow for bulk media uploads, intuitive file upload progress, automated image quality settings, and more.

Features:
  • Drag-and-drop file interface
  • WP Media Library integration
  • Automated resizing and quality control
  • Mobile-optimized file upload
wordpress file upload field for a job application form

Enjoy a More Intuitive Media Uploading

advanced UI for media upload

File upload progress indicator

Make the media upload routine visual thanks to a progress indicator in the WordPress file upload field.

WP Media Library UI

Enable users to select and attach previously uploaded files from the WordPress Media Library.

File preview and reordering

Preview media files and reorder them as needed in the field container before submitting the form.

Explore Drag & Drop File Upload Functionality

WP Media Library integration

Use native WordPress UI for uploading and selecting files when needed.

Resize images before upload

Adjust image quality settings, width, and height for optimized uploads.

Access control

Restrict user access to define who can actually use the field.

Upload modes

Select the preferred upload mode: instant or on form submit.

woocommerce cart and checkout addon options

File limits

Control file size validation rules, limits, and the allowed MIME types.

Storage & output options

Decide how to store uploaded files: as attachments, on the server, or as a URL.

Attach files to email

Use the field for email attachments without saving them to the server.

Update media meta fields

Use the field and JetEngine Meta Boxes together for media meta field updates.

Drag & Drop File Upload Use Cases

Job application forms

Enable the job application file upload feature to facilitate CV uploads for candidates.

Support tickets

Add a customer support file upload field to the form to help agents better understand the ticket.

Media submissions

Allow for featured image upload and other media types, using a smart front-end form.

Custom orders

Build order forms featuring media fields for customers to upload receipts, references, etc.

Email attachments

Allow for file upload to emails – great for lead magnet campaigns and other email marketing initiatives.

User-generated content

Give users the opportunity to submit their content smoothly, respecting attachment types and sizes.

How to Set Up Drag & Drop File Upload Addon

How to set up

Go to WordPress Dashboard > JetFormBuilder > Addons and find the “Drag & Drop File Upload” addon in the All Available Addons section. Hit the “Install Addon” button next to it.

Once done, the addon will appear in the Your Installed Addons section. Click the “Activate Addon” button.

jetformbuilder addons page

Drag and Drop File Upload block settings

Head to WordPress Dashboard > JetFormBuilder > Forms and click the “Add New Form” button to build a new form or open the already created one to edit it.

Add the Drag and Drop File Upload block to your form.

In the General settings, you can adjust the following settings:

general settings
  • FIELD LABEL — a label of the field in the form;
  • FORM FIELD NAME — a slug of the field. It will be generated automatically from the FIELD LABEL and can be changed if needed. Ensure that the slug doesn’t contain spaces and uppercase letters, and includes only Latin letters, numbers, underscores, and dashes;
  • FIELD DESCRIPTION — a field description that is displayed next to the field.

Proceed to the Field settings tab. Here, you can adjust the following settings:

the first part of the field settings
  • USER ACCESS — a dropdown field that allows you to specify what user roles can use this field;
  • Enable Drag and Drop Upload UI — a toggle that is activated by default. When enabled, the “drag and drop” upload UI is active. Mind that at least one upload method should be activated: either this one, the “drag and drop” one, or the next, the “WP Media Library” one;
  • Enable WP Media Library UI — a toggle that is deactivated by default. When enabled, the WP Media Library UI is active. Mind that this feature works only for logged-in users;
  • Insert attachment — a toggle that is deactivated by default. When enabled, it lets users insert files as attachments. If active, the FIELD VALUE field becomes available, letting you select how the field value will be stored: as attachment ID, URL, array with both ID and URL, or array of attachment IDs;
  • Save uploaded files to the server — a toggle that is activated by default. With this feature, the uploaded files are saved on the server. Also, mind that if the Insert attachment toggle is activated, the Save uploaded files on server can’t be deactivated;
  • UPLOAD MODE — a mode of saving files: “Upload on form submit” means that the files will be sent to the server on form submission, and “Instant upload (immediately)” means uploading files to the server immediately when selected;
  • MAXIMUM FILES TO UPLOAD — a maximum number of files allowed to be uploaded. By default, it is set to “1”;
the second part of the field settings
  • MAXIMUM FILE SIZE (MB) — a maximum size of one uploaded file in megabytes;
  • MAXIMUM FILE SIZE MESSAGE — a message notifying the user about the maximum file size;
  • ALLOWED MIME TYPES — allowed field types. If not specified, all the WordPress-supported file types are allowed;
  • ALLOWED MIME TYPES MESSAGE — a message about the allowed MIME types that will be shown to the user.

In the following Image Size & Quality tab, the corresponding settings are available:

image size and quality settings
  • MAX IMAGE WIDTH (PX) — a maximum image width in pixels;
  • MAX IMAGE HEIGHT (PX) — a maximum image height in pixels;
  • IMAGE QUALITY — allows setting the maximum image quality (from “1” to “100”).

In the Labels section, you can change the default labels of the block to the custom ones.

labels settings

Ultimately, in the Advanced settings block, you can set the CSS classes of the block to style it.

NOTE. Additional settings fields can be displayed here if you have other Crocoblock plugins activated.

advanced settings
  • Add Prev Page Button — a toggle that is deactivated by default. When active, adds a “Prev Page” button after this field;
  • FIELD VISIBILITY — a field that allows you to set the field visibility: for every user, only for logged-in users, or only for not logged-in users;
  • CSS CLASS NAME — a field where the CSS classes can be put in order to stylize the block.

We also add an Action Button block to submit the form.

action button in the form

Once the block is fully customized according to your request and the form is ready, press the “Publish/Save” button to save the result.

Add a form to the page

The form can now be displayed in the preferred page builder with the help of the JetForm widget/block.

Adjust the page settings and save the page by pressing the “Publish” button.

jetform widget in elementor

Check the result

Open the just-added page on the front end and press the “Select files” button.

Pick the file either from your computer files or from the Media Library (depending on the previously selected UI).

media upload form on the front end

When the media file is added and the form is completed, you can press the “Submit” button.

media uploaded via the form

That’s all about setting up a Drag & Drop File Upload addon and adjusting the Drag & Drop File Upload block in the JetFormBuilder form.

Tip:
  • If you select “Instant upload (immediately)” in the UPLOAD MODE field, it will be impossible to submit the form until the upload is complete.
  • When updating the JetEngine Media meta field, make sure its Value format is identical to the Field value of the Advanced Media Field.
  • To update the Featured Image in a post, upload multiple images, and the first uploaded one will be picked as the new featured.

The WordPress Way to Build Forms

Buy JetFormBuilder Pro – get all Addons at once

Learn more

Explore more Addons

Signature

A form-enriching extension to add signature functionality to different form types online.

Learn morepro

PDF-attachment

A form addon to convert user-submitted data from a WordPress form to PDF attachments.

Learn morepro

Formless Actions Endpoints

A tweak to execute specific after-submit actions without front-end forms.

Learn morepro