diff --git a/upload-files.js b/upload-files.js index 175e460..33abf2a 100644 --- a/upload-files.js +++ b/upload-files.js @@ -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); }); }