Site Settings

How to Upload Files Using Uploadcare in Webflow

Kouki T
Designer

When creating forms in Webflow, there may be times when you want to allow users to upload files.

This article clearly explains how to upload files using Uploadcare in Webflow, as well as how to customize the appearance of embedded forms.

Why you should use Uploadcare

To use the file upload feature in Webflow, you need to subscribe to the Business plan ($39/month). Switching to this plan incurs an additional monthly cost of $20 (approximately 3000 yen) compared to the CMS plan ($16/month). Uploadcare offers a free plan and integrates smoothly with Webflow, making it an excellent choice if you want to easily implement file upload functionality.

How to Upload Files Using Uploadcare: Steps

1. Create an Uploadcare Account

Uploadcare 料金プラン画面

Source:https://uploadcare.com/pricing/

First, visit the official Uploadcare website and create an account. Enter the necessary information, such as credit card details and plan selection. For the plan, please register for the "Demo Plan ($0/month)," which allows you to upload files up to 10MB for free.

2.  Create a Project

Uploadcare プロジェクト作成画面

Once your account is created, log in to the Uploadcare dashboard and create a new project. For storage, we recommend selecting "Use Uploadcare’s built-in storage for simplicity."

3. Embed the Uploadcare Widget in Webflow

Webflow サイト設定


First, select your project in the Webflow dashboard and navigate to Site settings.

Webflow カスタムコード設定画面

Next, open the Custom Code tab and paste the Uploadcare script into the Head code.


4. Create a File Upload Form

Webflow inside<head>tag


From Webflow's "Pages," select the relevant page, paste the following code into "inside<head>tag" within Custom Code, and click Save. This will set up your file upload form.

5. Add a File Uploader Component to Your Webflow Form

Webflow Code embedの追加


To implement file upload functionality in Webflow, you need to add HTML code to the form-input. *For this example, we will implement the upload function in the resume upload section of the IGNITE application form.


In Webflow, press Command + K for quick search, then search for "Code embed" and click it.
* "Code embed" is a tool for embedding custom code into your Webflow design.

Webflow Code embedの編集画面


Next, insert the following code into Custom Code, then click Save and Close.

6. Test File Upload

Webflow Publish to selected domains


To confirm that the HTML changes have been applied, click "Publish to selected domains" to publish
your site.

IGNITE応募フォーム 履歴書及び職務歴書Upload files


Next, let's test if the file upload form you've set up is working correctly.

Publish your Webflow page and click "Upload files."

Reference:IGNITE Application Form here

IGNITE応募フォーム 履歴書及び職務歴書drop files here

Click "drop files here" and upload a suitable test file.

Open the Uploadcare Files tab, confirm that the test file you just uploaded is there, then click "Publish to selected domains" in Webflow again.

How to Remove Empty Fields

Sometimes, an "Empty field" may appear when submitting a form. This could be due to errors in JavaScript or custom code. Here's how to remove empty fields.

1. Add a Custom Element

Webflow Custom Element


Since there might be an issue with buttons using JavaScript or custom code, we will create a new button. First, search for "Custom Element" in Webflow and add it to your form. Custom Elements allow you to easily reuse buttons with the same design across multiple pages or projects.

2. Button Settings

Webflow Custom Element setting編集画面


Go to the settings panel on the right side of the screen and set the specific ID and text as follows:

  1. Enter "button" for Tag
  2. Enter "id=remove-empty-fields" for Attributes
  3. Enter the button name for Text (in this case, we will enter "Submit your entry").

3. Layout Settings

To hide the layout of the button you previously created, follow these settings:

(1) Display Settings

Webflow Custom Element Style編集画面


Click the original submit button and set its display property to "None." Alternatively, you can hide it by adding "is hidden" to the style selector. This will hide unnecessary elements (the original button).

(2) Add Code to Site Tags

Webflow カスタムコード Footer code


Add it to the site tags to hide it. For site tags, insert the following code into the Footer code and Publish.

4. Replace with a New Button

Webflow ボタンの非表示設定


Hide the original button and replace it with the new one. Display the newly created button where the original button was.

Finally, Publish your changes. If the final check is okay, the setup to remove empty fields is complete. Confirm that form submission works correctly and adjust settings as needed.

Summary

Achieve Low-Cost and Easy File Uploads in Webflow

By using Uploadcare, you can easily implement file upload functionality in Webflow. While Webflow's file upload feature requires a Business plan ($39/month), Uploadcare offers a free plan, allowing for cost-effective file uploads. Also, ensure that forms frequently implementing file uploads function correctly. If you can't find a solution after reading this article, please feel free to contact us.

Contact Us Here

あなたのWebサイトにブーストを。

Booostはノーコードツール「Webflow」に特化したWeb制作サービスです。
デザイン・マーケティング・翻訳の3つの最適化で、Webサイトの集客力を最大化します。

この記事を監修した人
Kouki T
Designer
Joined IGNITE as a designer in 2024. He has been involved in various creative fields, including web, graphic, and video production, having self-studied web design since his teens. Currently, he leverages his Webflow expertise to build high-quality websites that excel in design, SEO, and operation, ultimately boosting client acquisition.