[wp-trac] [WordPress Trac] #45622: VTT Mime Type fails upload

WordPress Trac noreply at wordpress.org
Thu Dec 13 11:27:17 UTC 2018


#45622: VTT Mime Type fails upload
----------------------------+-----------------------------
 Reporter:  birgire         |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Filesystem API  |    Version:  5.0.1
 Severity:  normal          |   Keywords:  has-patch
  Focuses:                  |
----------------------------+-----------------------------
 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
 [https://wordpress.stackexchange.com/q/321804/26350 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',
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45622>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list