[wp-trac] [WordPress Trac] #47752: Fix upload of .srt files

WordPress Trac noreply at wordpress.org
Sat Aug 31 03:46:25 UTC 2019


#47752: Fix upload of .srt files
-----------------------------------------+---------------------
 Reporter:  afercia                      |       Owner:  (none)
     Type:  defect (bug)                 |      Status:  new
 Priority:  normal                       |   Milestone:  5.3
Component:  Upload                       |     Version:  5.0.1
 Severity:  normal                       |  Resolution:
 Keywords:  needs-patch has-screenshots  |     Focuses:
-----------------------------------------+---------------------

Comment (by killerbishop):

 @itowhid06 - I was able to get some SRT files to work as well. The issue
 is with specific SRT files, such as the one @afercia posted originally:

 https://github.com/mediaelement/mediaelement-
 files/blob/master/mediaelement.srt

 This file is failing the check from `fileinfo` which is why I was thinking
 this is part of a bigger issue that was being mentioned in #40175. The
 bundled magic files with PHP apparently think that file is not a valid SRT
 - or at least this is true in PHP 7.3.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47752#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list