Skip to content

File Upload

File inputs from the native control to drag and drop zones, avatar and cover uploads, file lists and upload progress - ready for documents, images and imports.

1Native file input

The standard file input styled with form-control.

2Multiple files

The multiple attribute lets people choose several files at once.

You can select up to 10 files.

3Accept filters

accept limits the file picker to images, documents or spreadsheets.

4Sizes

form-control-sm and form-control-lg work on file inputs as well.

5Disabled

A disabled file input, for example once the upload limit is reached.

Storage is full - free up space to upload more.

6Drop zone

data-demo-dropzone accepts dragged files and lists them in the child file list.

Drag and drop files here

or click to browse

    7Drop zone with browse button

    A larger zone with a visible browse button and the accepted formats.

    Upload your ticket images

    PNG, JPG or GIF up to 10 MB each

      8Avatar upload

      A round preview with change and remove actions for profile photos.

      Mia Moreau
      Square image, at least 400 x 400 px.

      9Upload progress list

      Each file shows its type icon, name and a progress bar.

      • proposal-launch.pdf Done
      • cover-photo.jpg56% of 4.1 MB
      • budget-2027.xlsx10% of 860 KB

      10Input group with button

      A file input joined to an Upload button.

      11Document requirements

      A checklist of requirements next to the upload control.

      Proof of address

      • Utility bill or bank statement from the last 3 months
      • Your full name and address must be visible
      • PDF, JPG or PNG, max 5 MB

      12Compact drop zone

      A slim single-line zone for forms with little space.

      Drop a file or click to choose (max 2 MB)

        13Gallery upload

        Thumbnails of uploaded images with a dashed Add tile at the end.

        Gallery image 1
        Gallery image 2
        Gallery image 3

        14Uploaded files list

        Type icons, size, time and actions for every uploaded file.

        • brief-experience.docx
          184 KB - uploaded just now
        • assets.zip
          12.8 MB - uploaded just now
        • walkthrough.mp4
          48.2 MB - uploaded 14 hours ago
        • config.json
          6 KB - uploaded yesterday

        15Job application

        A CV upload combined with the other fields of an application form.

        PDF or Word, max 5 MB.

        16Camera capture

        capture="environment" opens the back camera on phones - great for receipts.

        On a computer this opens the normal file picker.

        17Upload error

        An invalid state explains why the chosen file was rejected.

        logo-final.png is 14 MB. The maximum size is 2 MB.

        18Cover image upload

        A wide image area with an overlay button to replace the cover.

        Current cover image

        Recommended size 1600 x 700 px.

        19CSV import

        A file picker followed by import options for spreadsheets.

        Import attendees

        20Dark drop zone

        The drop zone inside a dark section uses the dark surface variables.

        Drop your audio files

        MP3 or WAV