[wp-hackers] Media upload: limit file type and size

Claudio Simeone mrbrog at gmail.com
Tue Jan 5 16:38:15 UTC 2010


Hi all,

is it possible to allow in the media uploader only jpg / gif / png
files and set a file size limit only for some file types?

I need to disallow some users from uploading very large bmp image
files, but giving them the possibility to upload videos.
The best would to set an option per file type, e.g:

- disable bmp upload (and other image types)
- allow only jpg, gif, png files less than 2 Mb
- allow only flv files less than 6 Mb.....

Is there a way to do this? In the support forum I found nothing.

thanks in advance
Claudio


More information about the wp-hackers mailing list