Project

General

Profile

Actions

Bug #100138

closed

audio wav with mime type audio/x-wav is not recognized as audio file

Added by Alexander Bohn about 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2023-03-10
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
media audio wav
Complexity:
easy
Is Regression:
Sprint Focus:

Description

audio/wav -> HTML Audio Tag is correctly rendered
audio/x-wav -> Img Tag is rendered

after changing the sys_file/myme_type from audio/x-wav to audio/wav it is working.

Actions #1

Updated by Gerrit Code Review about 1 year ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/78087

Actions #2

Updated by Georg Ringer about 1 year ago

changed it in the AudioTagRenderer to protected $possibleMimeTypes = ['audio/mpeg', 'audio/wav', 'audio/x-wav', 'audio/ogg'];

maybe you wanna review the change in gerrit?

Actions #3

Updated by Gerrit Code Review about 1 year ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/78087

Actions #4

Updated by Markus Klein about 1 year ago

Question is, where does this mime-type come from?

https://mimetype.io/audio/x-wav
says it's deprecated.

Actions #5

Updated by Floyd Hermes about 1 year ago

Thank you for the additional information which states "you should likely still support it".

As it is needed, it is super easy to implement, it has no side effects and it is recommend it to support it - we should add the mime type to the cms.

Actions #6

Updated by Markus Klein about 1 year ago

Would you mind answering my last question?

Question is, where does this mime-type come from?

What are you doing such that the system identifies a file as audio/x-wav?
Any outdated mime-type detection going on?

I'd like to understand how the problem is rooted.

Actions #7

Updated by Alexander Bohn about 1 year ago

Question is, where does this mime-type come from?

That´s what the customer told me:

I also looked into where the mime-type comes from (different browsers on Mac and Windows), but couldn't figure out why it's set to x-wav. According to the StackOverflow article, Chrome (or Chromium) and Firefox either set it themselves or the operating system sets it when uploading (I also found x-wav in the Windows registry). I haven't had time to try Linux yet.

Actions #8

Updated by Markus Klein about 1 year ago

Thanks. my question was a bit misleading. The mimetype is usually determined by the server of course. I meant: Which library on the server does the mimetype detection?
I assume this is simply outdated there. I understand, though, that this might not be changeable any time soon.

Note: If the mime-type sent by the client would be trusted, this would be very insecure.

Actions #9

Updated by Gerrit Code Review about 1 year ago

Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/78894

Actions #10

Updated by Georg Ringer about 1 year ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF