mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
💄 Limit the size and number of uploaded files
💄 Limit the size and number of uploaded files
This commit is contained in:
@@ -53,6 +53,8 @@
|
||||
template: '',
|
||||
r: 0.0,
|
||||
k: 4,
|
||||
max_file_size: 10,
|
||||
max_file_count: 5,
|
||||
hybrid: false
|
||||
};
|
||||
|
||||
@@ -386,6 +388,41 @@
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class=" my-2 flex gap-1.5">
|
||||
<div class=" w-full justify-between">
|
||||
<div class="self-center text-xs font-medium min-w-fit mb-1">
|
||||
{$i18n.t('Max File Count')}
|
||||
</div>
|
||||
<div class="self-center">
|
||||
<input
|
||||
class=" w-full rounded-lg py-1.5 px-4 text-sm bg-gray-50 dark:text-gray-300 dark:bg-gray-850 outline-none"
|
||||
type="number"
|
||||
placeholder={$i18n.t('Enter Max File Count')}
|
||||
bind:value={querySettings.max_file_count}
|
||||
autocomplete="off"
|
||||
min="0"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="w-full">
|
||||
<div class=" self-center text-xs font-medium min-w-fit mb-1">
|
||||
{$i18n.t('Max File Size(MB)')}
|
||||
</div>
|
||||
|
||||
<div class="self-center">
|
||||
<input
|
||||
class="w-full rounded-lg py-1.5 px-4 text-sm bg-gray-50 dark:text-gray-300 dark:bg-gray-850 outline-none"
|
||||
type="number"
|
||||
placeholder={$i18n.t('Enter Max File Size(MB)')}
|
||||
bind:value={querySettings.max_file_size}
|
||||
autocomplete="off"
|
||||
min="0"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=" flex w-full justify-between">
|
||||
<div class=" self-center text-xs font-medium">{$i18n.t('Hybrid Search')}</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user