Assuming your website is under the Business, Ecommerce Plus, or Ecommerce Advanced hosting plan, you are able to integrate a Document upload button to your forms. This permits users to append files to their form entries, which you can automatically forward to the site’s data manager. Moreover, you are free to customize the look of the upload button and its various states to enhance the file uploading experience.
The Document upload button can assist you in gathering:
- Papers such as CVs, portfolios, and applications through job application forms
- Pictures and films like screenshots and screen-captures through customer support forms
- Packed files that, for instance, consist of images of a contestant in a competition through a submission form
Within the scope of this tutorial:
- How to append Document upload to your form
- How to personalize Document upload configurations
- How to modify Document upload states
- How to supervise file entries
Prior to commencement
Refer to our basics on forms lesson to understand how you can craft forms in Webflow.
How to append Document upload to your form
Firstly, confirm that you have included a Form block component on your page. Subsequently, drag and drop a Document upload button from the Add panel (A)> Forms section directly within your Form.
How to personalize Document upload configurations
Immediately after integrating the document upload input onto the canvas, the “Upload file” button will display in addition to a textual instruction. The settings panel will also open to the Document uploaddefault state.
In this location, you can switch between the 4 States of the document upload operation. Below, we will explain how to tweak and design these.
You also get to Label the Document upload button. This is particularly beneficial when you wish to include multiple Document upload buttons in a form (e.g., “CV” and “Cover Letter”). The label will aid in identifying the submitted files in your entries data.
You are given the option to make the document upload obligatory, akin to other form input components.
You can also opt to Permit only specific file categories. This enables you to limit the type of files that users can submit through the button in that specific form.
Permitting only specific file categories
As a default, a user can submit any supported file category. Notwithstanding, you can restrict file categories and select whether the Document upload button will allow users to submit a Paper file, an Picture file, or even custom file categories you define in the Custom text area input.
Supported file categories for document upload
Every document upload button accepts a single file of up to 10MB in size of the ensuing file formats:
- Papers — .ai, .csv, .doc, .docx, .indd, .key, .numbers, .pps, .ppt, .pptx, .psd, .ods, .odt, .pages, .pdf, .txt, .xls, .xlsx, .odt, .ods, .odp
- Images — .bmp, .dng, .eps, .gif, .jpg, .jpeg, .png, .ps, .raw, .svg, .tga, .tif, .tiff, .webp
- Custom — Audio files (.m4a, .mid, .mp3, .mpa, .ogg, .wav, .wma), video files (.3gp, .avi, .flv, .m4v, .mov, .mp4, .mpg, .wmv), .zip, .heic
Reminder: File formats are not case-sensitive.
Unsupported file categories for document upload
For security purposes, the following file categories are not permitted: .apk, .app, .bat, .cgi, .com, .exe, .ps1, .gadget, .jar, .sh, .wsf, .tar, .tar.gz
Valuable info: You can embed up to 20 document upload buttons in each form and configure each one individually. For instance, you can have one button that only accepts PDFs for an “Append your CV” button, and another that only accepts images for an “Upload a headshot” button.
How to customize Document upload states
You possess full authority over the appearance and vibe of the document upload journey in all its varied states:
- Default — the regular appearance of the button
- Uploading — how the button looks during the upload process
- Success — the appearance of the button post file upload
- Error — the message that will be shown in case of an issue