(file)
| 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) { |
no test coverage detected