See in GitHub

About

This component is a dropzone to upload multiple files. It is configured with a max file size of 1 MB and a max number of files of 5.

Here, the EdgeStoreProvider is configured for a maximum of 2 parallel uploads. This means that if you upload 5 files, only 2 will be uploaded at a time. The other 3 will be queued and uploaded in order as soon as one of the first 2 uploads finishes.

Additionally, a custom trigger for the upload process and a custom clear button are implemented using the provider methods. This allows for more control over the upload and reset actions directly from the UI.

p.s. The default value for maxParallelUploads is 5. Here we are setting it to 2 just to make it easier to see the queue in action.