fix: show error message when the uploading file is modified

This commit is contained in:
Shirasawa
2025-09-26 17:31:16 +08:00
committed by GitHub
parent f7ea60b500
commit 42faa63227

View File

@@ -23,7 +23,7 @@ export const uploadFile = async (token: string, file: File, metadata?: object |
return res.json();
})
.catch((err) => {
error = err.detail;
error = err.detail || err.message;
console.error(err);
return null;
});