Skip to content

Commit

Permalink
Improve error message on failed upload
Browse files Browse the repository at this point in the history
  • Loading branch information
mtlynch committed Jun 4, 2024
1 parent ef57614 commit f1f314f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions handlers/static/js/controllers/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ function uploadFormData(url, formData, progressFn) {
if (xhr.status >= 200 && xhr.status < 300) {
resolve(xhr.response);
} else {
if (xhr.responseText) {
reject(xhr.responseText);
return;
}
reject(xhr.statusText);
}
});
Expand Down

0 comments on commit f1f314f

Please sign in to comment.