[wp-trac] [WordPress Trac] #47752: Fix upload of .srt files
WordPress Trac
noreply at wordpress.org
Mon Jul 22 08:19:27 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 | Keywords: needs-patch has-screenshots
Focuses: |
--------------------------+-----------------------------------------
See #45615, #45622, [44438], [44439], and [44443].
Files with `.srt` extension are meant for video subtitles (captions), much
like `.vtt` files. After the changes to make the mime type check stricter
in WordPress 5.0.1 (backported to 4.9.9, etc.), uploading `.srt` files can
fail because of mismatched MIME type check. Actually, `.vtt` can be served
as `text/plain` depending on the server configuration.
Before WordPress 5.0.2, `.srt` files could be uploaded without issues.
For example, on a standard VVV install, the upload fails. Test file from
the `mediaelement-files` GitHub repo:
https://github.com/mediaelement/mediaelement-
files/blob/master/mediaelement.srt
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47752>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list