mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac/fix: folder direct file upload
This commit is contained in:
parent
4c9ab7bd50
commit
e262069265
1 changed files with 7 additions and 0 deletions
|
|
@ -30,6 +30,13 @@
|
|||
|
||||
const submitHandler = async () => {
|
||||
loading = true;
|
||||
|
||||
if ((data?.files ?? []).some((file) => file.status === 'uploading')) {
|
||||
toast.error($i18n.t('Please wait until all files are uploaded.'));
|
||||
loading = false;
|
||||
return;
|
||||
}
|
||||
|
||||
await onSubmit({
|
||||
name,
|
||||
data
|
||||
|
|
|
|||
Loading…
Reference in a new issue