[nycphp-talk] limit file types on image uploads?
Brian Pang
bpang at bpang.com
Thu Jul 17 08:50:29 EDT 2003
I use
$_FILES['nameOfFileFieldInForm']['type']
I think this reads the info out of the file's header.
>
>
> Joshua Glenn wrote:
>
> > i've used getimagesize(), which will give you an array with one of the
> > array elements saying what kind of image it is.
>
> In late versions of PHP there's http://us2.php.net/mime_magic which
may be handy (although finiky at times).
>
>
> Also, offtopic, phpclasses has been a hot item today: don't forget
the NYPHP mirror: http://mirrors.nyphp.org/
>
> H
>
>
>
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk
>
>
More information about the talk
mailing list