Skip to content

Commit

Permalink
Merge pull request #29068 from nextcloud/backport/stable21/25569
Browse files Browse the repository at this point in the history
[stable21] file-upload: Correctly handle error responses for HTTP2
  • Loading branch information
kesselb authored Oct 6, 2021
2 parents ee8edd3 + 287c935 commit 0de39c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files/js/file-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:') {
Expand Down

0 comments on commit 0de39c7

Please sign in to comment.