mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-23 14:10:42 -05:00
fix: an attached webpage stays when file upload is not allowed (#32701)
This commit is contained in:
1 file changed
+2
-2
@@ -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 = () => {
|
||||
|
||||
Reference in new issue
Block a user