Make WordPress Core

Opened 18 years ago

Closed 17 years ago

#2680 closed defect (bug) (fixed)

Missing mime types for upload

Reported by: mlanglois's profile mlanglois Owned by:
Milestone: 2.1 Priority: normal
Severity: normal Version: 2.0.2
Component: Administration Keywords:
Focuses: Cc:


Several MIME types are missing from the list in admin-functions.php (e.g. ac3 mpa flv...). The result is an error message when uploading such a file.

The list should obviously updated, but the problem will probably occur again in the future. Hence 2 suggestions: (1) add an option in the admin panel as to whether unrecognized filetypes should be accepted for upload; (2) make the list of mime types editable in the admin panel.
I'm sure the first suggestion could easily be implemented in the next release.

Change History (4)

#1 @skeltoac
18 years ago

  • Milestone set to 2.1

Counter suggestions, because new options are always the last resort:

  • Institute an "upload_anything" capability much like "unfiltered_html", or
  • Leave it alone because it's already pluggable via the upload_mimes filter.

#2 @davidhouse
18 years ago

Allowing uploads of any filetype is probably bad security pratice, so I don't think an option is a good idea. A capability might be tucked-away enough so that only the people that know what they're doing can mess with it, though.

I'd like to see a plugin that allows editing of mimes.

#3 @westi
18 years ago

I agree this is plugin territory.

So much so that I wrote one! -

#4 @matt
17 years ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.