NYCPHP Meetup

NYPHP.org

[nycphp-talk] limit file types on image uploads?

Keith Richardson keithjr at war3.com
Wed Jul 16 19:11:46 EDT 2003


$fileparts = explode(".",$filename);
$extention = $fileparts[sizeof($fileparts)-1];

that will give you the extention of the file, if the $filename var is 
the filename of the file that was uploaded.

-Keith Richardson

On Wednesday, July 16, 2003, at 06:05 PM, Tim Toomey wrote:

> What's the easiest way to limit what types of files people are allowed 
> to upload on an image upload script?
>  
> -Tim
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 686 bytes
Desc: not available
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20030716/89a3df8a/attachment.bin>


More information about the talk mailing list