aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/file-upload.js
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-10-08 15:03:24 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-10-08 15:03:24 +0200
commit7c6ed6ab33e8487d6de135b5e956a82685bf4463 (patch)
treec3e1156f734055e7fcae2916b7224dc340858c6f /apps/files/js/file-upload.js
parent730c80ff9c83ff1b027ab804ecad599fbcaf7bd3 (diff)
downloadnextcloud-server-7c6ed6ab33e8487d6de135b5e956a82685bf4463.tar.gz
nextcloud-server-7c6ed6ab33e8487d6de135b5e956a82685bf4463.zip
catch exceptions while uploading and pass on the error message
Diffstat (limited to 'apps/files/js/file-upload.js')
-rw-r--r--apps/files/js/file-upload.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js
index b52221ac1fc..88d5a05107f 100644
--- a/apps/files/js/file-upload.js
+++ b/apps/files/js/file-upload.js
@@ -365,7 +365,7 @@ $(document).ready(function() {
} else if (result[0].status !== 'success') {
//delete data.jqXHR;
data.textStatus = 'servererror';
- data.errorThrown = result.data.message; // error message has been translated on server
+ data.errorThrown = result[0].data.message; // error message has been translated on server
var fu = $(this).data('blueimp-fileupload') || $(this).data('fileupload');
fu._trigger('fail', e, data);
}