fix: improve failed upload error handling

This commit is contained in:
Elias Schneider
2022-10-14 15:10:24 +02:00
parent 58efc48ffa
commit 1259922847
3 changed files with 21 additions and 8 deletions

View File

@@ -72,7 +72,7 @@ const uploadFile = async (
file: File,
progressCallBack: (uploadingProgress: number) => void
) => {
var formData = new FormData();
let formData = new FormData();
formData.append("file", file);
return (