Skip to content

Commit 296ffc7

Browse files
committed
file-upload: Correctly handle error responses for HTTP2
Signed-off-by: Jakub Onderka <[email protected]>
1 parent 847ee40 commit 296ffc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files/js/file-upload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ OC.FileUpload.prototype = {
345345
*/
346346
getResponse: function() {
347347
var response = this.data.response();
348-
if (response.errorThrown) {
348+
if (response.errorThrown || response.textStatus === 'error') {
349349
// attempt parsing Sabre exception is available
350350
var xml = response.jqXHR.responseXML;
351351
if (xml && xml.documentElement.localName === 'error' && xml.documentElement.namespaceURI === 'DAV:') {

0 commit comments

Comments
 (0)