[wp-trac] [WordPress Trac] #17117: WordPress serves up wrong MIME type for Office 2007 downloads
WordPress Trac
wp-trac at lists.automattic.com
Tue Apr 12 14:24:56 UTC 2011
#17117: WordPress serves up wrong MIME type for Office 2007 downloads
---------------------------+-----------------------------
Reporter: LafayetteNuke | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Filesystem | Version: 3.1
Severity: normal | Keywords:
---------------------------+-----------------------------
When serving up hosted files for download, WordPress assigns the wrong
MIME type for Office 2007. For example, docx files are served up as
"application/msword" instead of "application/vnd.openxmlformats-
officedocument.wordprocessingml.document"
As a result, browsers end up interpreting the files in different ways.
Some, like IE8 on Windows 7 or Safari on Mac OS X 10.6, will add a ".doc"
to the end of the file name. Others (Firefox, Chrome) will see the Office
98-2003 MIME type, but keep the existing file name. The iPad displays a
"Unknown file type" error. The issue is not limited to Word 2007 files
however; all Office 2007 files (pptx, xlsx) appear to have the same issue.
There is a forum discussion for this issue:
http://wordpress.org/support/topic/docx-files-and-functionsphp?replies=9
It's possible this bug was introduced here:
http://core.trac.wordpress.org/changeset/9662
The proposed change is to tweak the MIME declarations in wp-
includes/functions.php to reflect the proper MIME type information.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17117>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list