Dropzone
A dropzone is a file field users can drop files onto, with a list of the chosen files below it.
Basic
Add data-bs-toggle="dropzone" to a .dropzone with a file input inside. A new file replaces the old one.
Multiple files
Add multiple to the input to collect several files in the list.
Restrictions
Limit the files with accept, data-bs-max-size and data-bs-max-files. A file that breaks a rule is listed with the reason.
Disabled
Add disabled to the input. The area is dimmed and takes no clicks or drops.
File list states
Static .dropzone-item rows show an upload in progress (.dropzone-item-uploading), a finished one (.dropzone-item-success) and a failed one (.dropzone-item-error).
annual-report-2025.pdf
team-photo.jpg
product-demo.mp4