Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#11051 closed defect (bug) (fixed)

Add .flv to the upload whitelist

Reported by: rustang289's profile rustang289 Owned by:
Milestone: 2.9 Priority: normal
Severity: normal Version: 2.8.5
Component: Upload Keywords: has-patch
Focuses: Cc:


After doing the wordpress update from WordPress 2.8.4 to ver 2.8.5
I get an error "File type does not meet security guidelines. Try another." while trying to upload a media file .flv. The upload works fine on verion 2.8.4 . I did a fresh wordpress install of 2.8.4 and had no problems I then did an imidiate upgrade to 2.8.5 and tried to upload the same file again and thats when I got the error. There are no plugins installed and no extra themes.

Attachments (2)

11051.patch (442 bytes) - added by hakre 15 years ago.
flv added (2.8 KB) - added by hakre 15 years ago.

Download all attachments as: .zip

Change History (10)

#1 @dd32
15 years ago

  • Milestone Unassigned deleted
  • Resolution set to invalid
  • Status changed from new to closed

This is a "new" security function, Only whitelisted filetypes may be uploaded by all users (admins included), Previously, This only applied to non-administrators.

See #10692 for where it was done, and a link to a plugin to add file types to the whitelist.

Feel free to open tickets to add any other safe files which should be whitelisted.

To restore pre-2.8.5 behaviour, you may add this to the wp-config.php file:


#2 @dd32
15 years ago

  • Keywords needs-patch added
  • Milestone set to 2.9
  • Resolution invalid deleted
  • Status changed from closed to reopened

Oh, I missed the fact you mentioned .flv..

I think that should probably be added to the whitelist functionality.

Here are the current items whitelisted:

#3 @dd32
15 years ago

  • Summary changed from upload problem to Add .flv to the upload whitelist

#4 @westi
15 years ago

There is a plugin available which allows you to manage the list of white listed file types

15 years ago

flv added

15 years ago


#5 @hakre
15 years ago

Mutliple other video formats and even swf is on the whitelist. Therfore flv should be as well. This will increase usability w/o the need to configure. Not that I'm such a flashy adobe fanboy, it's used by other apps as well, just to keep that clear.

Filename extension: .flv
Internet media type: video/x-flv

I added it to the list in the patch.

#6 @hakre
15 years ago

  • Keywords has-patch added; needs-patch removed

#7 @azaozz
15 years ago

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

(In [12239]) Add video/x-flv to mime types, props hakre, fixes #11051

#8 @hakre
14 years ago

Related: #7225

Note: See TracTickets for help on using tickets.