mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-28 06:22:33 +00:00
fix: an attached webpage stays when file upload is not allowed (#32701)
This commit is contained in:
parent
8e7ab75d81
commit
bb8d49ff31
1 changed files with 2 additions and 2 deletions
|
|
@ -74,8 +74,8 @@
|
|||
$: webUploadEnabled = $user?.role === 'admin' || ($user?.permissions?.chat?.web_upload ?? true);
|
||||
$: toolPermissionsEnabled = $config?.features?.enable_tool_permissions ?? false;
|
||||
|
||||
$: if (!fileUploadEnabled && files.length > 0) {
|
||||
files = [];
|
||||
$: if (!fileUploadEnabled && files.some((file) => file.type !== 'text')) {
|
||||
files = files.filter((file) => file.type === 'text');
|
||||
}
|
||||
|
||||
const detectMobile = () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue