mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
remove onComplete call if there has been an error with fineuploader
This commit is contained in:
parent
c9042a0934
commit
63b763dd25
@ -302,7 +302,12 @@ var ReactS3FineUploader = React.createClass({
|
||||
|
||||
/* FineUploader specific callback function handlers */
|
||||
|
||||
onComplete(id) {
|
||||
onComplete(id, name, res, xhr) {
|
||||
// there has been an issue with the server's connection
|
||||
if(xhr.status === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
let files = this.state.filesToUpload;
|
||||
|
||||
// Set the state of the completed file to 'upload successful' in order to
|
||||
|
Loading…
Reference in New Issue
Block a user