Support » Fixing WordPress » How to restrict MIME-Types users can upload?

  • I didn’t find any option to restrict the file/mime types a user can upload to the media library. The users should only upload JPG + GIF and no other formats.
    Anybody knows how to get this working?

Viewing 5 replies - 1 through 5 (of 5 total)
  • I am having the same problem. I have IIS 6 and wordpress 2.7

    I’m also looking for a way to restrict media upload types. I only want user to be about to upload JPG + GIF and nothing else. (So, I’d also like to remove the other media upload buttons as well so users won’t see Add Video, etc.)

    I’ve found a plugin that allows you to add MIME-types, but I don’t yet understand how to use this plugin to delete MIME-types. I’d like to be able to manage the default WP2.7 MIME-types. (Ultimately, I’d like to manage MIME-types according to user roles.)

    I also found in wp-includes/functions.php the list of allowed MIME-types, so I suppose it’s possible to just edit these here. But it doesn’t really provide a solution. Users still see the Add Video button. And editing the core files really isn’t great.

    Forgot to add the link to the plugin if anyone is interested, pjw-mime-config:

    pjw-mime-config v0.90 released

    Ok, here’s a real hack of a fix… In wp-admin/images/ you will find the media button images: media-button-video.gif is one of them. If you open that image in Photoshop and just delete the image and then save it as a transparent gif, then the button becomes invisible.

    It’s not really a fix. You can still click on the invisible button to upload. But at least the button becomes invisible. Ha! Like I said, it’s not really a fix.

    What I’d really like to find is the correct CSS file and just set that div to display:none, but I can’t find it. I’ve searched everywhere. Anyone know which CSS file it is?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to restrict MIME-Types users can upload?’ is closed to new replies.