MCPcopy
hub / github.com/dropzone/dropzone / removeFileEvent

Function removeFileEvent

src/options.js:620–638  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

618 }
619
620 let removeFileEvent = (e) => {
621 e.preventDefault();
622 e.stopPropagation();
623 if (file.status === Dropzone.UPLOADING) {
624 return Dropzone.confirm(
625 this.options.dictCancelUploadConfirmation,
626 () => this.removeFile(file)
627 );
628 } else {
629 if (this.options.dictRemoveFileConfirmation) {
630 return Dropzone.confirm(
631 this.options.dictRemoveFileConfirmation,
632 () => this.removeFile(file)
633 );
634 } else {
635 return this.removeFile(file);
636 }
637 }
638 };
639
640 for (let removeLink of file.previewElement.querySelectorAll(
641 "[data-dz-remove]"

Callers

nothing calls this directly

Calls 1

removeFileMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…