Skip to content
Snippets Groups Projects
Commit e15b9bdd authored by lain's avatar lain
Browse files

Merge branch 'file-type-service-fix' into 'develop'

Modify filetype service to accept more generic mimetypes

See merge request !381
parents ff60a9e6 cddb1730
No related branches found
No related tags found
No related merge requests found
......@@ -9,11 +9,11 @@ const fileType = (typeString) => {
type = 'image'
}
if (typeString.match(/video\/(webm|mp4)/)) {
if (typeString.match(/video/)) {
type = 'video'
}
if (typeString.match(/audio|ogg/)) {
if (typeString.match(/audio/)) {
type = 'audio'
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment