configurator-file-input
File uploader that is also a formula step, with the number of files as variable.
Where it can go
- Inside
smootify-add-to-cart. - Out of place, Smootify removes it from the page: also when the add-to-cart has no smootify-product ancestor.
What it requires
- The server plan: on other plans Smootify removes the element from the page.
- The Product configurator extension (server plan, the extension activated in the Smootify dashboard, the licensed domain). Without it, its markup is removed from the page.
Fields in the form
Each field’s name attribute tells Smootify what the field holds.
| Name | Field | What it does |
|---|---|---|
the element’s name, else its input[type="file"]’s | file | The field the uploaded files are sent under; the file input itself loses its name. |
Attributes on the element
- It reads
data-formula,name,data-multiple,data-required,data-preview,data-only-images,min-file-size,max-file-size,min-resolution,data-error-<code>. - Smootify writes
data-formulaon it: do not set them yourself.
Attributes inside it
| Group | Attribute name | Values |
|---|---|---|
| File upload | upload | 10 |