2.0 Beta

Smootify 2.0 is in public beta. Your 1.x store keeps working. Move when you want.

What changed

file-uploader

Uploads files to Shopify and adds their names, gids and admin links to the cart line.

v2.0 betaServer planAdd-on: Product File Upload
Open .md
On this page
  1. At a glance
  2. Where it can go
  3. What it requires
  4. Fields in the form
  5. Attributes on the element
  6. Attributes inside it

At a glance

is-dragover

A file is dragged over

On
file-uploader
Use it
To highlight the drop area.
is-uploading

A file is uploading

On
file-uploader and the item.
Shows
upload="progress" counts up. The form waits before adding to the cart.
has-files · is-done

The file is uploaded

On
has-files on file-uploader, is-done on the item, is-image for an image.
Shows
The name, the size and, with data-preview, the preview.
is-full

The limit is reached

On
file-uploader
When
It holds as many files as data-multiple allows, here 3.
is-invalid

A file is refused

On
file-uploader
Shows
upload="errors", with each refused file and why.
is-error

The upload failed

On
The item.
Shows
Its upload="error": why this file failed.

More in the guide.

Where it can go

What it requires

  • The server plan: on other plans Smootify removes the element from the page.
  • The Product File Upload extension (server plan, the extension activated in the Smootify dashboard, the licensed domain). Without it, the element does nothing.

Fields in the form

Each field’s Name setting in Webflow tells Smootify what the field holds. It is a setting of the field, not a custom attribute.

NameFieldWhat it does
the element’s name, else its input[type="file"]’sfileThe field the uploaded files are sent under; the file input itself loses its name.

Attributes on the element

  • It reads name, data-multiple, data-required, data-preview, data-only-images, min-file-size, max-file-size, min-resolution, data-error-<code>.

Attributes inside it

GroupAttribute nameValues
File uploadupload10

    ↑ ↓ to moveEnter to openEsc to close