mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 19:37:47 +01:00
refac
This commit is contained in:
@@ -52,6 +52,7 @@
|
||||
import FilesOverlay from '$lib/components/chat/MessageInput/FilesOverlay.svelte';
|
||||
import DropdownOptions from '$lib/components/common/DropdownOptions.svelte';
|
||||
import Pagination from '$lib/components/common/Pagination.svelte';
|
||||
import { i } from 'vitest/dist/reporters-w_64AS5f.js';
|
||||
|
||||
let largeScreen = true;
|
||||
|
||||
@@ -566,6 +567,11 @@
|
||||
e.preventDefault();
|
||||
dragged = false;
|
||||
|
||||
if (!knowledge?.write_access) {
|
||||
toast.error($i18n.t('You do not have permission to upload files to this knowledge base.'));
|
||||
return;
|
||||
}
|
||||
|
||||
const handleUploadingFileFolder = (items) => {
|
||||
for (const item of items) {
|
||||
if (item.isFile) {
|
||||
|
||||
Reference in New Issue
Block a user