Merge branch 'file-type-service-fix' into 'develop'
Modify filetype service to accept more generic mimetypes See merge request pleroma/pleroma-fe!381
This commit is contained in:
commit
e15b9bddbb
|
@ -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'
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue