Works with any backend npm install Zero dependencies

Custom Form Field Name

Change the multipart form field name from "file" to whatever your backend expects.

(function() {
 new MultipleUpload('#demo', {
 uploadUrl: '/api/upload',
 multiple: true,
 fieldName: 'attachment'
 });
})();
Default: The form field is named file. Set fieldName to match your server-side parameter name.