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

[EMAIL PROTECTED]

www.mbtradingco.com

58748874 

 

Reply via email to