mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-17 23:05:20 +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}
|
alt={file.name}
|
||||||
imageClassName=" max-h-96 rounded-lg"
|
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}
|
{:else}
|
||||||
<FileItem
|
<FileItem
|
||||||
item={file}
|
item={file}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue