File Type Validation problem.

From: Date: Sat, 29 Mar 2003 15:33:45 +0000
Subject: File Type Validation problem.
Groups: php.general 
Request: Send a blank email to php-general+get-141586@lists.php.net to get a copy of this message
Hi I am wondering if any one can help me please: I'm trying to validate a file when uploading it. I want only to accept .jpg and .gif files so I'm trying to use. If(($file_type = = " image/JPEG") || ($file_type = = "image/GIF")) But it will not let through even the .jpg or .gif images. I was thinking of validating the filename to end up in .gif or .jpg, but since it exists the $file_type, I'm sure I'm doing something wrong. Your help is greatly appreciated. LRC Elliot J. Balanza CEO M&B Trading Co., SA de CV Bringing the world together elliotb@mbtradingco.com www.mbtradingco.com 58748874

« previous php.general (#141586) next »