Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.addEventListener("click", (e) => {
// Make sure that the form isn't actually being sent.
e.preventDefault();
e.stopPropagation();
if (this.files.length === 0) {
alert("No input file specified!");
return false;
}
// reset the upload queue
for (const file of this.files) {
file.status = Dropzone.QUEUED;
}
this.processQueue();
});
},