mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 03:47:49 +01:00
refac: file item modal
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
(item?.name && item?.name.toLowerCase().endsWith('.pdf'));
|
||||
|
||||
$: isAudio =
|
||||
item?.meta?.content_type.startsWith('audio/') ||
|
||||
(item?.meta?.content_type ?? '').startsWith('audio/') ||
|
||||
(item?.name && item?.name.toLowerCase().endsWith('.mp3')) ||
|
||||
(item?.name && item?.name.toLowerCase().endsWith('.wav')) ||
|
||||
(item?.name && item?.name.toLowerCase().endsWith('.ogg')) ||
|
||||
|
||||
Reference in New Issue
Block a user