Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#6628 closed enhancement (fixed)

Uploader: filter file_types glob

Reported by: tellyworth Owned by:
Milestone: 2.5.1 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch
Focuses: Cc:


This makes it possible for a plugin to filter the types of files that are selectable by the user from the Flash uploader.

The value should be a string of semicolon-separated wildcards, like '*.jpg;*.mp3;*.txt'

The default is '*.*', same as in 2.5.0.

Attachments (1)

upload_file_glob-r7608.patch (651 bytes) - added by tellyworth 10 years ago.

Download all attachments as: .zip

Change History (3)

#1 @ryan
10 years ago

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

(In [7611]) upload_file_glob filter from tellyworth. fixes #6628 for trunk

#2 @ryan
10 years ago

(In [7612]) upload_file_glob filter from tellyworth. fixes #6628 for 2.5

Note: See TracTickets for help on using tickets.