Skip to content

Commit

Permalink
Merge pull request #29069 from nextcloud/backport/stable20/25569
Browse files Browse the repository at this point in the history
[stable20] file-upload: Correctly handle error responses for HTTP2
  • Loading branch information
artonge authored Oct 5, 2021
2 parents 0858c38 + 7ab3efc commit 7e6f579
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 7e6f579

Please sign in to comment.