Add a file upload button to your forms to collect documents, images, media files, and more from your visitors.
If your site is on the Business, Ecommerce Plus, or Ecommerce Advanced hosting tier, you can add a file upload button to your forms. This allows visitors to attach files to their form submissions, which you can automatically send to the site’s data controller. And of course, you can style the upload button and all its states to customize every step of the file upload experience.
Collecting files directly through a form on your site is great for acquiring:
Make sure you’ve added a form onto your page. Then, drag and drop a file upload button from the add elements panel (A) → forms section right inside your form.
As soon as you add the file upload input onto the canvas, you’ll see the “Upload file” button as well as a text note. The settings window will be open as well indicating that this is the default state.
Here, you can toggle between the 4 states of the file upload process. We’ll cover how to customize and style these below.
You can also name the file upload button. This is helpful especially when you want to add more than one file upload element in a form. The name will help you identify the submitted files in your submissions data.
Of course, you can choose to make the file upload required just like other form input elements.
You can also choose to allow only specific file types. This lets you restrict the type of files that people can submit through the button for that specific form.
By default, a user can submit any supported file type. However, you can restrict file types and choose whether this file upload button will allow users to submit a document file, an image file, or even custom file types you specify in the custom text area input.
Each file upload button accepts a single file of up to 10MB in size of the following file formats:
For security reasons, the following file types are not allowed: .apk, .app, .bat, .cgi, .com, .exe, .ps1, .gadget, .jar, .sh, .wsf, .tar, .tar.gz
You have complete control over the look and feel of the file upload experience in all its different states:
The default state consists of:
You can change the text of the message or even delete it entirely. You can also style it just like you would style any text block.
The button is the actual upload button that you can customize by editing the text, customizing the styling, and replacing the icon.
To edit the text, just double-click the button and replace the text. You can style the text separately or by applying the styling on the entire button.
To style the button, add a class and apply any styling you want in the style panel. You can change the background color, the border, the font — the list goes on and on. By changing the font color of the button you also change the color of the default icon.
If you do not wish to do that, or if you want to style the icon and the text separately, just add a separate class to each of these elements and apply different font colors on each one.
To replace the button icon, just delete the default icon, then drag and drop the icon you want to use from your assets panel.
You can also reposition the default icon by dragging it inside the button.
You can customize and style the button of the uploading state the same way you customize the button in the default state.
The success state of the file upload contains:
You can style the whole button in the success state.
The default error message that appears in the Designer reads: “Upload failed. Max size for files is 10MB.” However, the error state might also show for reasons other than when the file size is larger than 10MB. For example, there might be a network error or the uploaded file may be corrupted or has an invalid file extension. A different message will show up for each error type. Learn how you can customize these messages below.
The button that appears in the error state right above the error message is the same button from the default state. So, editing the button here will replace the original button in the default state.
You can replace the default text for all 3 error types. You can also change the text color or apply any other styling by selecting the text block that is nested inside the error state wrapper.
To customize the error messages, select the error text block on the canvas, then you'll be able to access the field error settings in the settings panel. To edit each error message, click on the pencil icon that appears when you hover over the error type name.
You can always restore the default message for each error type. Just edit the error message and click "restore default".
When a user uploads and submits a file through one of your forms, the uploaded file will be included as a URL in your form submission notification that is emailed to the email address(es) you have specified in your form notification settings in your project settings.
If you’re the data controller of a project, you can also access and view submitted files of each project in project settings → forms → form submission data.
Form file upload storage is free up to 10GB, and $0.50/month per GB after that. You can clear storage by deleting submissions.
By default, only users logged into Webflow can access files uploaded through a form. Meaning, a user that is not logged into Webflow won't be able to access the files even when they have the link to the files. You can allow anyone with the link to access the files by turning this option off in project settings → forms → restrict uploaded file access.
Something went wrong while submitting the form. Please contact email@example.com