Works with any backend npm install Zero dependencies

Confirm Before Remove

Show a confirmation dialog before removing a completed file.

(function() {
 new MultipleUpload('#demo', {
 uploadUrl: '/api/upload',
 multiple: true,
 removable: true,
 confirmRemove: true
 });
})();

A guard on one specific action

confirmRemove defaults to false: clicking remove takes the file out of the queue immediately. Setting it true puts a confirmation in front of that one action, and nothing else — it does not affect cancelling an upload in flight or clearing the whole queue.

When it earns the extra click

It is worth the friction when the file is expensive to replace: a large video the user waited on, a photo taken on the device that is not saved anywhere else, or a queue assembled from several folders where re-picking one file means starting the selection again. For a two-file form it is friction with nothing to protect.

removable defaults to true. If a file must not be removable at all — a required document in a compliance flow — set removable: false rather than relying on a confirmation the user can simply accept.