upload big files

This commit is contained in:
Arno Kaimbacher 2019-07-04 18:46:03 +02:00
parent a463cb9e4c
commit ad2e1ce378
5 changed files with 83 additions and 61 deletions

View file

@ -351,10 +351,17 @@ const app = new Vue({
_this.serrors.push(errorsArray[index]);
}
}
//fill with server error
if (errorObject.response.data.error) {
var error = errorObject.response.data.error;
_this.serrors.push(error.message);
}
//raundtrip to server was not possible
if (error.message && error.message.includes('413')) {
console.log('The file you tried to upload is too large.')
var error = 'The file you tried to upload is too large.';
_this.serrors.push(error);
}
_this.currentStatus = STATUS_FAILED;
});
},