mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
refac
This commit is contained in:
parent
ef9cd0e0ad
commit
48bdb3f266
1 changed files with 4 additions and 0 deletions
|
|
@ -20,6 +20,10 @@
|
|||
let filesInputElement = null;
|
||||
let inputFiles = null;
|
||||
|
||||
$: if (selectedItems === null) {
|
||||
selectedItems = [];
|
||||
}
|
||||
|
||||
const uploadFileHandler = async (file, fullContext: boolean = false) => {
|
||||
if ($user?.role !== 'admin' && !($user?.permissions?.chat?.file_upload ?? true)) {
|
||||
toast.error($i18n.t('You do not have permission to upload files.'));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue