[wp-trac] [WordPress Trac] #39550: Some Non-image files fail to upload after 4.7.1
WordPress Trac
noreply at wordpress.org
Fri Jan 13 09:33:41 UTC 2017
#39550: Some Non-image files fail to upload after 4.7.1
---------------------------+------------------------
Reporter: greatislander | Owner: joemcgill
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.7.2
Component: Upload | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
---------------------------+------------------------
Comment (by mensmaximus):
Comparing the mime types as defined by Apache with the mime types returned
from wp_get_mime_types() is see some differences which will cause problems
because WordPress is not checking the correct mime type.
The following list contains all non standard mime types in WordPress as
well as those defined in WordPress but not included in the Apache mime
types
(http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types)
Extension: avi
wordpress => video/avi
apache => video/x-msvideo
Extension: divx
wordpress => video/divx
apache =>
Extension: m4v
wordpress => video/mp4
apache => video/x-m4v
Extension: 3gpp
wordpress => video/3gpp
apache =>
Extension: 3gp2
wordpress => video/3gpp2
apache =>
Extension: asc
wordpress => text/plain
apache => application/pgp-signature
Extension: c
wordpress => text/plain
apache => text/x-c
Extension: cc
wordpress => text/plain
apache => text/x-c
Extension: h
wordpress => text/plain
apache => text/x-c
Extension: srt
wordpress => text/plain
apache => application/x-subrip
Extension: vtt
wordpress => text/vtt
apache =>
Extension: dfxp
wordpress => application/ttaf+xml
apache =>
Extension: m4a
wordpress => audio/mpeg
apache => audio/mp4
Extension: m4b
wordpress => audio/mpeg
apache =>
Extension: ra
wordpress => audio/x-realaudio
apache => audio/x-pn-realaudio
Extension: ram
wordpress => audio/x-realaudio
apache => audio/x-pn-realaudio
Extension: wav
wordpress => audio/wav
apache => audio/x-wav
Extension: class
wordpress => application/java
apache => application/java-vm
Extension: gz
wordpress => application/x-gzip
apache =>
Extension: gzip
wordpress => application/x-gzip
apache =>
Extension: rar
wordpress => application/rar
apache => application/x-rar-compressed
Extension: psd
wordpress => application/octet-stream
apache => image/vnd.adobe.photoshop
Extension: xcf
wordpress => application/octet-stream
apache =>
Extension: wri
wordpress => application/vnd.ms-write
apache => application/x-mswrite
Extension: mdb
wordpress => application/vnd.ms-access
apache => application/x-msaccess
Extension: docm
wordpress => application/vnd.ms-word.document.macroEnabled.12
apache => application/vnd.ms-word.document.macroenabled.12
Extension: dotm
wordpress => application/vnd.ms-word.template.macroEnabled.12
apache => application/vnd.ms-word.template.macroenabled.12
Extension: xlsm
wordpress => application/vnd.ms-excel.sheet.macroEnabled.12
apache => application/vnd.ms-excel.sheet.macroenabled.12
Extension: xlsb
wordpress => application/vnd.ms-excel.sheet.binary.macroEnabled.12
apache => application/vnd.ms-excel.sheet.binary.macroenabled.12
Extension: xltm
wordpress => application/vnd.ms-excel.template.macroEnabled.12
apache => application/vnd.ms-excel.template.macroenabled.12
Extension: xlam
wordpress => application/vnd.ms-excel.addin.macroEnabled.12
apache => application/vnd.ms-excel.addin.macroenabled.12
Extension: pptm
wordpress => application/vnd.ms-powerpoint.presentation.macroEnabled.12
apache => application/vnd.ms-powerpoint.presentation.macroenabled.12
Extension: ppsm
wordpress => application/vnd.ms-powerpoint.slideshow.macroEnabled.12
apache => application/vnd.ms-powerpoint.slideshow.macroenabled.12
Extension: potm
wordpress => application/vnd.ms-powerpoint.template.macroEnabled.12
apache => application/vnd.ms-powerpoint.template.macroenabled.12
Extension: ppam
wordpress => application/vnd.ms-powerpoint.addin.macroEnabled.12
apache => application/vnd.ms-powerpoint.addin.macroenabled.12
Extension: sldm
wordpress => application/vnd.ms-powerpoint.slide.macroEnabled.12
apache => application/vnd.ms-powerpoint.slide.macroenabled.12
Extension: wp
wordpress => application/wordperfect
apache =>
Extension: wpd
wordpress => application/wordperfect
apache => application/vnd.wordperfect
Extension: key
wordpress => application/vnd.apple.keynote
apache =>
Extension: numbers
wordpress => application/vnd.apple.numbers
apache =>
Extension: pages
wordpress => application/vnd.apple.pages
apache =>
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39550#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list