[wp-hackers] Media upload: limit file type and size
Frank Bueltge
frank at bueltge.de
Tue Jan 5 18:16:05 UTC 2010
And maybe you can set the sizes via ini_set()
ini_set("upload_max_filesize", "30M");
On Tue, Jan 5, 2010 at 5:38 PM, Claudio Simeone <mrbrog at gmail.com> wrote:
> 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
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list