mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 03:17:46 +01:00
refac/fix: folder direct file upload
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user