Add before event to upload files mixin
This commit is contained in:
parent
b01eccb4c7
commit
d0006e4d54
@ -36,6 +36,8 @@ export const upload = function(superClass) {
|
||||
formData.append(files[i].name, files[i]);
|
||||
}
|
||||
|
||||
document.dispatchEvent(new CustomEvent('before-request', { detail: request, bubbles: true, composed: true }));
|
||||
|
||||
request.send(formData);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user