fix: add .mp3 override to type detection
parent
65a20824a8
commit
d01868b23e
|
@ -11,7 +11,9 @@ export function getTypes(entity: UpObject, entityInfo: EntityInfo) {
|
|||
const audio =
|
||||
(["audio", "application/x-riff"].some((p) => mimeType.startsWith(p)) &&
|
||||
!video) ||
|
||||
entity?.identify().some((l) => l.endsWith(".ogg"));
|
||||
[".ogg", ".mp3"].some((suffix) =>
|
||||
entity?.identify().some((l) => l.endsWith(suffix))
|
||||
);
|
||||
const image = mimeType.startsWith("image");
|
||||
const text = mimeType.startsWith("text");
|
||||
const pdf = mimeType.startsWith("application/pdf");
|
||||
|
|
Loading…
Reference in New Issue