Regression: Show upload errors (#16681)

pull/16683/head
Diego Sampaio 6 years ago committed by GitHub
parent 7227b2eb68
commit ccfa3b645d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/ui/client/lib/fileUpload.js

@ -270,7 +270,7 @@ export const fileUpload = async (files, input, { rid, tmid }) => {
} catch (error) {
const uploads = Session.get('uploading') || [];
uploads.filter((u) => u.id === upload.id).forEach((u) => {
u.error = error.message;
u.error = (error.xhr && error.xhr.responseJSON && error.xhr.responseJSON.error) || error.message;
u.percentage = 0;
});
Session.set('uploading', uploads);

Loading…
Cancel
Save