Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#28805 closed enhancement (fixed)

File upload support for Adobe Photoshop PSD

Reported by: michalzuber Owned by: ccprice
Priority: normal Milestone: 4.1
Component: Media Version: 3.9
Severity: normal Keywords: needs-patch good-first-bug
Cc: Focuses:

Description

I was adding a PSD file over Add media of P2 theme and after uploading the 24MB I got Error: filetype is not permitted

http://i.imgur.com/WOuQZYs.png

PHPMailer has support for it:

wp-includes/class-phpmailer.php:2859:            'psd' => 'application/octet-stream',

I should be notified before uploading that the MIME type is not permitted or am I wrong?

Attachments (2)

28805.diff​ (2.6 KB ) - added by michalzuber 12 years ago.
Added mime for PSD
28805.2.diff​ (1.4 KB ) - added by ccprice 12 years ago.

Download all attachments as: .zip

Change History (9)

@michalzuber
12 years ago

Added mime for PSD

#1 @SergeyBiryukov
12 years ago

  • Component General → Media

#2 @michalzuber
12 years ago

  • Keywords dev-feedback has-patch added
  • Version → trunk

#3 @helen
12 years ago

  • Type defect (bug) → enhancement
  • Version trunk → 3.9

Hard to tell what's going on in the patch with all the whitespace changes. It looks kind of weird originally, too. Trying to align those things with spaces seems like a pretty terrible idea for upkeep.

#4 @wonderboymusic
12 years ago

  • Keywords needs-patch good-first-bug added; dev-feedback has-patch removed
  • Milestone Awaiting Review → 4.1

This patch needs to be rewritten

#5 @wonderboymusic
12 years ago

  • Owner set to ccprice
  • Status new → assigned

@ccprice
12 years ago

#6 @wonderboymusic
12 years ago

Patch looks good, application/octet-stream is what PHPMailer uses, so should suffice for now. Seems like several other possibilities are listed when I search the web.

#7 @wonderboymusic
12 years ago

  • Resolution → fixed
  • Status assigned → closed

In 29833:

Allow PSDs (Photoshop documents) to be uploaded.

Props michalzuber, ccprice.
Fixes #28805.

Note: See TracTickets for help on using tickets.