Skip to content

Commit 0b0094d

Browse files
committed
fix(upload): add mkv MIME type mapping to support MKV video uploads
1 parent d4f70ba commit 0b0094d

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

config/config.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ config :mime, :types, %{
5656
"image/cr2" => ["cr2"],
5757
"image/cr3" => ["cr3"],
5858
"image/x-adobe-dng" => ["dng"],
59-
"image/x-portable-pixmap" => ["ppm"]
59+
"image/x-portable-pixmap" => ["ppm"],
60+
"video/x-matroska" => ["mkv"]
6061
}
6162

6263
config :libcluster,

lib/penguin_memories_web/live/upload_live.html.heex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<label class="form-label d-block">
4242
Select a folder or individual files
4343
<span class="text-muted small">
44-
(JPG, CR2, CR3, DNG, MP4, MOV accepted; max 200 MB each)
44+
(JPG, CR2, CR3, DNG, MP4, MOV, MKV accepted; max 200 MB each)
4545
</span>
4646
</label>
4747
<div phx-hook="DirectoryUpload" id="directory-upload-hook">

0 commit comments

Comments
 (0)