Blocks

Files - Uploads

Upload blocks: a dropzone with file validation, multi file progress with pause and cancel, an avatar upload with preview, an image grid with a cover image, an upload dialog with an import from link tab and a failed uploads list with retry.

These blocks cover the common upload patterns. The dropzone ones use the UiDropfile component and add a real browse button, because the dropzone itself reacts to the mouse only. Files are checked for type, size and duplicates in the browser, and previews come from object URLs that the blocks revoke when they are not needed any more.

No file is sent anywhere. The progress bars are simulated with a timer, so replace them with real upload progress from your request, and check type and size again on the server.

Style One

Dropzone with a browse button, checks for type, size and duplicates, a list of rejected files and a list of the chosen files.

External View

Style Two

Multi file progress with speed and time left, pause and resume, cancel for one file or all and an overall progress bar.

External View

Style Three

Avatar upload with an instant preview, type and size checks, remove, cancel and save.

External View

Style Four

Image upload with a thumbnail grid, a cover image, a limit counter and remove buttons.

External View

Style Five

Upload dialog with an upload tab and an import from link tab. It shows progress and closes when the file is done.

External View

Style Six

Failed uploads with a clear reason for each one, retry for network errors, replace file for bad files and a retry all button.

External View