mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +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 () => {
|
const submitHandler = async () => {
|
||||||
loading = true;
|
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({
|
await onSubmit({
|
||||||
name,
|
name,
|
||||||
data
|
data
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue