Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 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 8 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 @ryan8 years ago

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

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

comment:2 @ryan8 years ago

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

Note: See TracTickets for help on using tickets.