Black Friday

40% off every plan for a year with code BF2026. Until December 2.

See the prices
2.0 Beta

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

What changed

File upload

The values of `upload` inside `file-uploader` or `file-input` or `configurator-file-input`.

v2.0 beta
Open .md
On this page
  1. At a glance
  2. Where it can go
  3. Values

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

Values

Attribute and valueWhat it isNotes
upload="dropzone"Drop zoneon container
upload="list"File liston container
upload="item"File rowTemplate: one per file; on container
upload="preview"Previewon image, container
upload="name"File nameon text
upload="size"File sizeon text
upload="progress"Progresson container
upload="error"Erroron text
upload="remove"Removeon button, link
upload="errors"Errorson container

    ↑ ↓ to moveEnter to openEsc to close