mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
enh: channels video file upload behaviour
This commit is contained in:
parent
22f1b764a7
commit
7b126b23d5
1 changed files with 6 additions and 0 deletions
|
|
@ -347,6 +347,12 @@
|
|||
alt={file.name}
|
||||
imageClassName=" max-h-96 rounded-lg"
|
||||
/>
|
||||
{:else if file.type === 'video' || (file?.content_type ?? '').startsWith('video/')}
|
||||
<video
|
||||
src={`${file.url}${file?.content_type ? '/content' : ''}`}
|
||||
controls
|
||||
class=" max-h-96 rounded-lg"
|
||||
></video>
|
||||
{:else}
|
||||
<FileItem
|
||||
item={file}
|
||||
|
|
|
|||
Loading…
Reference in a new issue