Skip to content
Snippets Groups Projects

Add option to handle errors in done() callback of chunksUploaded

Open Nitzan Bar requested to merge nitzo/dropzone:chunks-uploaded-error into master
1 file
+ 7
2
Compare changes
  • Side-by-side
  • Inline
+ 7
2
@@ -1987,8 +1987,13 @@ class Dropzone extends Emitter {
}
if (allFinished) {
this.options.chunksUploaded(file, () => {
this._finished(files, '', null);
this.options.chunksUploaded(file, (error) => {
if (error){ // Handle error in specific file
this._errorProcessing([file], error);
}
else {
this._finished(files, '', null);
}
});
}
};
Loading