Opened 6 years ago
Closed 6 years ago
#45622 closed defect (bug) (duplicate)
VTT Mime Type fails upload
Reported by: | birgire | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.0.1 |
Component: | Upload | Keywords: | has-patch |
Focuses: | Cc: |
Description
The text/vtt
is an allowed mime type but doesn't match the text/plain
from the $real_mime
in wp_check_filetype_and_ext()
and after 5.0.1 that function returns:
Array ( [ext] => [type] => [proper_filename] => )
but did return before:
Array ( [ext] => vtt [type] => text/vtt [proper_filename] => )
This was reported by Prast here.
Similar has been reported for CSV in #45615
I suspect the same might be true for some of the other supported text formats:
'csv' => 'text/csv', 'tsv' => 'text/tab-separated-values', 'ics' => 'text/calendar', 'rtx' => 'text/richtext', 'css' => 'text/css', 'htm|html' => 'text/html', 'vtt' => 'text/vtt',
Attachments (2)
Change History (6)
#1
@
6 years ago
Thanks for the report - yes I believe you're right about at least some of those other formats also. There are further complications as well. I like your approach of adding an extra entry to the wp_get_mime_types
array, that might help with some of the other issues. I'm working on testing some variations.
Note: See
TracTickets for help on using
tickets.
Sample file from https://w3c.github.io/webvtt/#introduction-caption