Works with any backend npm install Zero dependencies

Attachment Mode

A compact file list view, perfect for email-style attachment UIs.

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

The email-client layout

attachmentMode defaults to false. Switched on, the queue renders as a compact horizontal row of chips rather than a stacked list — the layout every mail client uses for attachments. It suits a composer, a comment box or a ticket form, where the uploader is a small part of a larger form and a full-height queue would push the submit button off screen.

Pair it with removable

Attachment chips are only useful if they can be taken off again, so this demo sets removable: true alongside. That option defaults to true already; it is spelled out here because attachment mode is where it matters most. Add confirmRemove: true if a mis-click would be expensive.