How to Create a File Upload Form in WordPress

The file upload form in WordPress is used when you want to get information from the user and store it in the website database. For example, you really want specialists to employ for your company, so you ask for resumes from work searchers who have applied for a task, or maybe you have organized a challenge where you want an information demand form to gather information from participants. In this tutorial, we will show you how to create a file upload form in WordPress.

How to Create a File Upload Form in WordPress

The file upload form is an excellent idea for saving information from any kind of file. This form allows users to send images, PDF files, Word reports, or other kinds of files.

Using the file upload form makes life easier for yourself as well as your users. Instead of a backup email, you can create a form that contains all the fields you want, so you can gather all the information in one place.

Also, your form ought to automatically save data to the WordPress database. Along these lines, you can easily find sent messages, regardless of whether an email is lost or erased.

For this tutorial, we will use ” WPForms, “which is the best WordPress contact form plugin.

You can get single file features in the main “WPForms” app if you need more financial plans. Therefore, the program totally gives you access to reward form templates, review reports, and a number of other strong features.

To start with, you want to install and activate the “WPForms” plugin. After activating the plugin, you will see a new “WPForms” tab in your dashboard.

Go to the “WPForms » Addons” page and go to the “Form Templates Pack Addon” area. Click on the “Install Addon” button to install and activate it.
Now you are ready to create the principal form.

Now you can go to ” WPForms » Add New ” and create another page. “You will be taken straightforwardly to the “WPForms manufacturer. Now you really want to choose the ideal template.

The upload form will be automatically created for you. If you wish, you can use the form without making any changes.

Types of File You Can Upload

Naturally, it allows users to upload the following file types:

  • Images: .png, .gif, .jpg
  • Records: .doc, .xls, .ppt, .pdf
  • Audio: .wav, .mp3, .mp4
  • Video: .mpg, .mov, .wmv

If you want to channel files, click on “File Upload” to enter the editing panel. In the “Allowed File Extensions box” area, you can type any file format you want. To use “.png, .gif, and .jpg” image formats, make certain to separate them with commas.

Note: WordPress limits the sorts of files you can upload to the site for the sake of security. If you want to allow users to upload files that are not normally allowed, you can add these files to WordPress.

Set Max and Min Limit

You can also set the maximum file size and the maximum number of files. For example, we allow individuals to upload up to 3 photos and a maximum size of 50MB.

If you want to avoid submitting the form without attaching your file, you can check the “Required box” box. This means that the form cannot be submitted except if at least 1 file has been uploaded.

As a matter of course, the File Upload Field uses a cutting-edge format that allows users to upload their own files. Be that as it may, if you have restricted space for your form or lean toward a classic style, you can change this.

To see more settings, simply click on “Advanced Options.” Then you can change the “Advanced” mode to “Classic” using the opened tab.

Note: The classic style segment just allows one file to be uploaded. If you want users to have the option to upload more than one file, you want to add more than one upload field to your form. You can save the sent files in the WordPress media library if you wish. This allows you to add them to a post or page.

Note: Uploaded files are stored in your WordPress database, regardless of whether you check this crate. They are simply stored in a separate folder in your WordPress hosting account. If you want to alter any of the other fields on your form, you can click on the altered field to alter them on the left.

You can also add new fields using the “Add Fields” tab. You can easily add any field you want to your form.

In this part, you can add “website/URL” to the form so that the file has the ideal link.

To erase a field, simply click on the trash can. For example, we want to erase the “phone” field: Now is an ideal opportunity to store information.

Also see: How to Check Safety of WordPress Plugin

Set Your File Upload Form Notifications

In the settings segment, you can set up email notifications. You may want to change the default settings.

The email notification form is in the {admin_email} field.

This field will be your email address if you have created your own WordPress site. If not, you can eliminate {admin_email} and type your email address instead.

Note: Not certain if {admin_email} is your email address? Go to Settings » General in your WordPress dashboard. Search for “Administration Email Address“. You can alter the field in this part.

After doing this, simply click on the “Save Changes” choice (at the bottom of the changes) If you want the sent files to be shipped off beyond one person, you can do what you want in this segment.

After submitting the form, you may also want to change users’ confirmation messages. You can do this in ” Settings » Confirmations “.

Just sort your ideal message in the “crate.” If you want, you can add formatting like “striking” and “italic”. Along these lines, the past message is as per the following. Remember to save your form after making changes. You can leave the form by clicking the “X” on the right.

Form to Add a File to the Website

After creating a form, you want to add it to the website. You can add it to a post or page or create another page.

We want to add a form to the new page. To create another page, go to Pages » Add New. Then add another block to your page by clicking the (+) symbol.

Then, you want to choose “WPForms” from the Widgets segment. You can use the search bar if you want.

After adding the block to the page, select the created form from the “WPForms” dropdown.

You can now see the changes made in the review area.

You can change your form by visiting ” WPForms » All Forms. “Simply click on the name of the form, and click the “Alter” link.

At the point when you alter the form, it will automatically update on your website. You don’t have to add it to the page again.

View or Download Uploaded Files

At the point when someone presents a file through your upload form, you can get it through your email inbox or through your WordPress dashboard.

Each time you enter the form, you will get an email. To see or download the files, simply click on the “link”.

You can also easily find the files from within WordPress itself by going to ” WPForms » Entries ” then clicking on the form name. In the following stage, you can see the uploaded files in the table of passages of the form. Then again, you can click on “link” to see the total details of the form.
We trust this tutorial has shown you how to create a file upload form in WordPress.

You may also like...

Leave a Reply

Your email address will not be published.