Add before event to upload files mixin

This commit is contained in:
trading_peter 2022-11-15 20:12:51 +01:00
parent b01eccb4c7
commit d0006e4d54

View File

@ -36,6 +36,8 @@ export const upload = function(superClass) {
formData.append(files[i].name, files[i]); formData.append(files[i].name, files[i]);
} }
document.dispatchEvent(new CustomEvent('before-request', { detail: request, bubbles: true, composed: true }));
request.send(formData); request.send(formData);
}); });
} }