MCPcopy
hub / github.com/dropzone/dropzone / removeFile

Method removeFile

src/dropzone.js:861–871  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

859
860 // Can be called by the user to remove a file
861 removeFile(file) {
862 if (file.status === Dropzone.UPLOADING) {
863 this.cancelUpload(file);
864 }
865 this.files = without(this.files, file);
866
867 this.emit("removedfile", file);
868 if (this.files.length === 0) {
869 return this.emit("reset");
870 }
871 }
872
873 // Removes all files that aren't currently processed from the list
874 removeAllFiles(cancelIfNecessary) {

Callers 3

removeAllFilesMethod · 0.95
test.jsFile · 0.80
removeFileEventFunction · 0.80

Calls 3

cancelUploadMethod · 0.95
withoutFunction · 0.85
emitMethod · 0.80

Tested by

no test coverage detected