Re: Re: filtering filename.ext on file-upload.

From: Date: Fri, 16 Jan 2004 02:58:42 +0000
Subject: Re: Re: filtering filename.ext on file-upload.
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-174760@lists.php.net to get a copy of this message
code> if ($_FILES['imagefile']['type'] != "image/pjpeg") >The 'type' in $_FILES is provided by the browser. IIRC only IE uses >"image/pjpeg" whilst other browsers use "image/jpeg". But regardless of what >the browser sets, it is more reliable to get the image type from >getimagesize(). If im going to use this and if the user did not use an ie browser, hm it will mess up things. Based on what i just read, it will not work on all. But thanks for the suggestion. pathinfo() hmm, will check it out. i think now i can more filter the results. -- - Louie Miranda http://www.axishift.com

« previous php.general (#174760) next »