This commit is contained in:
arc-alex
2023-11-19 19:39:13 +01:00
parent e52a75db7d
commit 85ee9de528
5 changed files with 27 additions and 55 deletions
+1 -4
View File
@@ -239,10 +239,7 @@ export const uploadSheetClientFile = async (file: File) => {
.post(`${ontimeURL}/sheet-clientsecrect`, formData, {
headers: {
'Content-Type': 'multipart/form-data',
},
onUploadProgress: (progressEvent) => {
const complete = progressEvent?.total ? Math.round((progressEvent.loaded * 100) / progressEvent.total) : 0;
},
}
})
.then((response) => response.data.id);
};