# `MishkaGervaz.Form.Dsl.Uploads`
[🔗](https://github.com/mishka-group/mishka_gervaz/blob/v0.0.1-alpha.3/lib/mishka_gervaz/form/dsl/uploads.ex#L1)

Uploads section — file upload entities tied to fields of type
`:upload`.

Each `upload` entity declares accept rules, count and size limits, and
optional dropzone text and preview UI. A `field :name, :upload` with a
matching name binds the LiveView upload config to the rendered control.

## Example

    uploads do
      upload :cover do
        accept "image/*"
        max_entries 1
        max_file_size 5_000_000
        show_preview true
        auto_upload true
        dropzone_text "Drop image here"

        ui do
          label "Cover Image"
          icon "hero-photo"
          class "border-dashed"
          preview_class "w-32 h-32"
        end
      end
    end

See `MishkaGervaz.Form.Entities.Upload` for the full option list,
including `auto_upload`, `chunk_size`, `progress`, and the `ui`
sub-entity.

# `section`

Returns the uploads section definition.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
