mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
Merge pull request #17777 from ShirasawaSama/patch-33
fix: show error message when the uploading file is modified
This commit is contained in:
commit
acdafcd18d
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue