Make WordPress Core

Opened 14 years ago

Closed 11 years ago

Last modified 11 years ago

#15697 closed enhancement (fixed)

File upload support for OpenXPS / Microsoft XPS filetype (oxps / xps, alternative to PDF)

Reported by: sgryphon's profile sgryphon Owned by: kapeels's profile kapeels
Milestone: 4.0 Priority: normal
Severity: minor Version: 3.1
Component: Upload Keywords: has-patch
Focuses: Cc:

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 14 years ago.

Download all attachments as: .zip

Change History (8)

#1 @nacin
14 years ago

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

#2 @kapeels
14 years ago

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

@kapeels
14 years ago

#3 @kapeels
14 years ago

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

#4 @kapeels
14 years ago

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

#5 @nacin
14 years ago

Dup of #15735?

#6 @wonderboymusic
11 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 28372:

Add xps and oxps extensions to list of supported document types.

More: http://en.wikipedia.org/wiki/Open_XML_Paper_Specification

Fixes #15697.

#7 @wonderboymusic
11 years ago

  • Keywords dev-feedback removed
  • Milestone changed from Future Release to 4.0
Note: See TracTickets for help on using tickets.