Docs
Free ON WEBFLOW.IO DOMAINS

File Uploader

Component
Sub-module
File upload module for product customization

Shopify Storefront data and cart logic is bound to your Webflow elements through Shopyflow attributes. Connecting your Webflow site to Shopify is done by adding custom attributes to your Webflow elements.

Yet, you are not required to type or edit attributes manually. Shopyflow provides you with the pre-configured components needed to create your store, as copyable Webflow elements right in Webflow designer.

All the copyable Shopyflow Components are native editable Webflow elements. There is no layout or styling limitation on any element.

In the below image hover your mouse on the hotspots to see all the required Shopyflow attributes to build a product page like this in Webflow

Webflow designer
Custom Attributes
sf-add-to-cart="1"
Custom Attributes
sf-change-quantity="1"
Custom Attributes
sf-change-option="{Option Name}"
Custom Attributes
sf-cart-count="1"
Custom Attributes
sf-change-option="{Option Name}"
Custom Attributes
sf-product="{Product ID}"
Custom Attributes
sf-show-image="1"
Attribute Name
sf-file-uploader
Attribute Value
True or 1
Nesting Rule
Can be placed anywhere in the site
Product Container
>
File Uploader
Method
sf-file-uploader

File Uploader enables customers to upload files (images, documents, etc.) along with their product purchase. This is useful for custom products like personalized items, print-on-demand products, or any product requiring customer-provided files.

File Uploader is a Div Block with the sf-file-uploader attribute. The uploaded files are stored as line item properties in the order and can be accessed in your Shopify Admin assets.

Class name
sf-file-uploader
Target elements
Can be placed anywhere in the site
Product Container

Webflow app usage

  1. Select the Product Container in the Webflow designer
  2. In the Shopyflow app; click Add new
  3. Select File Uploader
  4. Configure file type and upload settings
  5. Select the Product Container again
  6. Paste File Uploader component

Webflow app settings

File Limit

Set the maximum number of files that can be uploaded (default: 5)

Max. File Size

Set the maximum size of files that can be uploaded (default: none)

Accepted File Types

Configure which file types customers can upload by entering the file extensions with a comma separator.
e.g. jpg, png, pdf

Leave empty to accept all file types

Inner components

Module contents

Available methods

Drop Zone

Drag and drop area for file uploads
Attribute Name
sf-drop-zone
Attribute Value
True or 1
Method
sf-drop-zone

The drag and drop area where customers can drop files to upload them. Drop Zone is a Div Block with the sf-drop-zone attribute.

Customers can either drag and drop files onto this area or click it to open the file browser. The drop zone provides visual feedback when files are dragged over it.

Read more →

File Preview List

Looping container for uploaded file previews
Attribute Name
sf-preview-list
Attribute Value
True or 1
Method
sf-preview-list

Contains the list of uploaded file previews. File Preview List is a Div Block with the sf-preview-list attribute.

This component automatically displays all files that have been uploaded by the customer, showing file previews and allowing them to remove files if needed.

Read more →

Add File Button

Button to trigger file selection
Attribute Name
sf-add-file
Attribute Value
True or 1
Method
sf-add-file

Opens the file browser to allow customers to select files for upload. Add File Button is a Div Block with the sf-add-file attribute.

When clicked, this button triggers the native file selection dialog where customers can choose one or multiple files to upload, depending on the File Uploader settings.

Read more →

Component

contents

Drop Zone

Action
Drag and drop area for file uploads
Attribute Name
sf-drop-zone
Attribute Value
True or 1
Nesting Rule
Can be placed anywhere in the site
File Uploader
>
Drop Zone

The drag and drop area where customers can drop files to upload them. Drop Zone is a Div Block with the sf-drop-zone attribute.

Customers can either drag and drop files onto this area or click it to open the file browser. The drop zone provides visual feedback when files are dragged over it.

Read more →

Webflow app usage

Webflow app settings

File Preview List

Looping Container
Looping container for uploaded file previews
Attribute Name
sf-preview-list
Attribute Value
True or 1
Nesting Rule
Can be placed anywhere in the site
File Uploader
>
File Preview List

Contains the list of uploaded file previews. File Preview List is a Div Block with the sf-preview-list attribute.

This component automatically displays all files that have been uploaded by the customer, showing file previews and allowing them to remove files if needed.

Read more →

Webflow app usage

Webflow app settings

Add File Button

Action
Button to trigger file selection
Attribute Name
sf-add-file
Attribute Value
True or 1
Nesting Rule
Can be placed anywhere in the site
File Uploader
>
Add File Button

Opens the file browser to allow customers to select files for upload. Add File Button is a Div Block with the sf-add-file attribute.

When clicked, this button triggers the native file selection dialog where customers can choose one or multiple files to upload, depending on the File Uploader settings.

Read more →

Webflow app usage

Webflow app settings

State management

No items found.

Related Utilities

No items found.
Can't find a solution? Join our Discord server to get an instant reply from our experts and the community.