Propogate errors when uploading a file fails
This cancels the wait and ensures an error is displayed
This commit is contained in:
@ -73,6 +73,10 @@ function uploadFile ({ id, uploadSignedUrl }, contentType, contentObjUrl) {
|
||||
};
|
||||
xhr.send(blob);
|
||||
});
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log('error uploading file', err)
|
||||
return undefined
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user