# configurator-file-input

> File uploader that is also a formula step, with the number of files as variable.

Status: Ready (Smootify 2.0)  
Plan: Server plan  
Add-on: Product configurator  
URL: https://www.smootify.io/docs/astro/reference/elements/configurator-file-input  
Updated: 2026-10-21

## Where it can go

- **Inside** [`smootify-add-to-cart`](https://www.smootify.io/docs/astro/reference/elements/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-formula` on it: do not set them yourself.

## Attributes inside it

| Group | Attribute name | Values |
|---|---|---|
| [File upload](https://www.smootify.io/docs/astro/reference/attributes/upload) | `upload` | 10 |
