Opened 3 years ago
Last modified 3 years ago
#15697 assigned enhancement
File upload support for OpenXPS / Microsoft XPS filetype (oxps / xps, alternative to PDF)
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Upload | Version: | 3.1 |
| Severity: | minor | Keywords: | has-patch dev-feedback |
| Cc: | kapeel.sable@… |
Description
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.
- In /trunk/wp-includes/functions.php, function wp_ext2type (line ~2355): add 'oxps' and 'xps' after the 'pdf' entry as 'document' types.
- 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'.
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
Dup of #15735?