diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js index 178cda856a..919a5314f6 100644 --- a/apps/files/js/file-upload.js +++ b/apps/files/js/file-upload.js @@ -345,7 +345,7 @@ OC.FileUpload.prototype = { */ getResponse: function() { var response = this.data.response(); - if (response.errorThrown) { + if (response.errorThrown || response.textStatus === 'error') { // attempt parsing Sabre exception is available var xml = response.jqXHR.responseXML; if (xml && xml.documentElement.localName === 'error' && xml.documentElement.namespaceURI === 'DAV:') {