1
0
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:
Tim Daubenschütz 2015-08-03 10:54:34 +02:00
parent c9042a0934
commit 63b763dd25

View File

@ -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