Propogate errors when uploading a file fails

This cancels the wait and ensures an error is displayed
This commit is contained in:
Jackson Harper
2022-02-16 12:53:22 -08:00
parent 4c07dd56a9
commit 6c9e316884

View File

@ -73,6 +73,10 @@ function uploadFile ({ id, uploadSignedUrl }, contentType, contentObjUrl) {
};
xhr.send(blob);
});
})
.catch((err) => {
console.log('error uploading file', err)
return undefined
});
}