Skip to content

Commit 71ef33c

Browse files
authored
fix: [Assets][Files] MP4 preview displays corrupted content (Issue #2407) (#2409)
1 parent 9deb8d2 commit 71ef33c

File tree

1 file changed

+6
-0
lines changed
  • apps/ai-dial-admin/src/constants

1 file changed

+6
-0
lines changed

apps/ai-dial-admin/src/constants/file.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ export const contentTypes: Record<string, string> = {
5757
'.csv': 'text/csv',
5858
// pdf
5959
'.pdf': 'application/pdf',
60+
// audio/video
61+
'.mp3': 'audio/mpeg',
62+
'.wav': 'audio/wav',
63+
'.ogg': 'audio/ogg',
64+
'.mp4': 'video/mp4',
65+
'.webm': 'video/webm',
6066
};
6167
// same as bodySizeLimit in server config
6268
export const MAX_FILE_SIZE_MB = 4;

0 commit comments

Comments
 (0)