[wp-trac] [WordPress Trac] #15697: File upload support for OpenXPS / Microsoft XPS filetype (oxps / xps, alternative to PDF)

WordPress Trac wp-trac at lists.automattic.com
Mon Dec 6 00:37:38 UTC 2010


#15697: File upload support for OpenXPS / Microsoft XPS  filetype (oxps / xps,
alternative to PDF)
-------------------------+--------------------------------------------------
 Reporter:  sgryphon     |       Owner:                               
     Type:  enhancement  |      Status:  new                          
 Priority:  normal       |   Milestone:  Awaiting Review              
Component:  Upload       |     Version:  3.1                          
 Severity:  minor        |    Keywords:  upload xps oxps pdf microsoft
-------------------------+--------------------------------------------------
 OpenXPS / XPS (XML Paper Specification) is a document file type similar to
 PDF, originally created by Microsoft but now an open standard, ECMA-388.

 If you allow uploads of PDF, you should allow uploads of this competing
 format.

 More details on the file type:
 http://en.wikipedia.org/wiki/Open_XML_Paper_Specification

 This is a very simple change, similar to Ticket #8194 / Changeset 9662.

 1. In /trunk/wp-includes/functions.php, function wp_ext2type (line ~2355):
 add 'oxps' and 'xps' after the 'pdf' entry as 'document' types.

 2. In /trunk/wp-includes/functions.php, function get_allowed_mime_types
 (line ~2475): add (after 'pdf') the MIME type for 'oxps' as
 'application/oxps', and 'xps' as 'application/vnd.ms-xpsdocument'.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15697>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list