This commit is contained in:
Barış Soner Uşaklı
2016-02-16 18:04:02 +02:00
parent 82875de32d
commit 88e4591f88
8 changed files with 78 additions and 74 deletions

View File

@@ -58,7 +58,7 @@ define('uploader', ['csrf', 'translator'], function(csrf, translator) {
},
error: function(xhr) {
xhr = maybeParse(xhr);
showAlert('error', xhr.responseJSON ? xhr.responseJSON.error : 'error uploading, code : ' + xhr.status);
showAlert('error', xhr.responseJSON ? (xhr.responseJSON.error || xhr.statusText) : 'error uploading, code : ' + xhr.status);
},
uploadProgress: function(event, position, total, percent) {