Commit 1c676b75 authored by lain's avatar lain
Browse files

Merge branch 'fix/mp3-recognition' into 'develop'

upload.ex: add MPEG Layer 3 file header.

See merge request !221
parents 678df59d 12c7a023
Pipeline #2458 passed with stages
in 4 minutes and 43 seconds
......@@ -151,6 +151,9 @@ def get_content_type(file) do
<<0x49, 0x44, 0x33, _, _, _, _, _>> ->
"audio/mpeg"
<<255, 251, _, 68, 0, 0, 0, 0>> ->
"audio/mpeg"
<<0x4F, 0x67, 0x67, 0x53, 0x00, 0x02, 0x00, 0x00>> ->
"audio/ogg"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment