WordPress.org

Make WordPress Core

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: sgryphon Owned by: kapeels
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.

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

15697-1.diff (1.5 KB) - added by kapeels 3 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 nacin3 years ago

  • Keywords needs-patch added; upload xps oxps pdf microsoft removed
  • Milestone changed from Awaiting Review to Future Release

comment:2 kapeels3 years ago

  • Owner set to kapeels
  • Status changed from new to assigned

kapeels3 years ago

comment:3 kapeels3 years ago

  • Cc kapeel.sable@… added
  • Keywords has-patch 2nd-opinion added; needs-patch removed

comment:4 kapeels3 years ago

  • Keywords dev-feedback added; 2nd-opinion removed

comment:5 nacin3 years ago

Dup of #15735?

Note: See TracTickets for help on using tickets.