Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

fix(frontend:files): detect .mp4 video files properly

johaven4df92a531d6b
diff --git a/frontend/src/app/applications/files/models/file.model.ts b/frontend/src/app/applications/files/models/file.model.ts
index b6dfc3a9..47ba2dd9 100644
--- a/frontend/src/app/applications/files/models/file.model.ts
+++ b/frontend/src/app/applications/files/models/file.model.ts
@@ -143,6 +143,10 @@ export class FileModel implements File {
} else if (longMime === 'html') {
this.isViewable = true
this.isEditable = true
+ } else if (extension === 'mp4') {
+ this.isViewable = true
+ this.shortMime = 'media'
+ this.haveThumbnail = true
} else if (this.shortMime === 'image' && extension !== 'svg') {
this.isImage = true
this.isViewable = true