NYCPHP Meetup

NYPHP.org

[nycphp-talk] Re: Using $_FILES["whatever"]["type"] correctly

Webapprentice . webapprentice at mail.com
Wed Jan 14 10:56:18 EST 2004


Sorry, that was poor diction on my part.

I meant to say "for example."  I used a file whose extension was clearly .jpg
I used pathinfo() to make sure it was, yet my if statement seems to be coming out false, resulting in my error message being used.  It should not be that way.


------------------
Message: 3
Date: Wed, 14 Jan 2004 07:25:01 -0500
From: Terenzio <webmaster at localnotion.com>

Subject: Re: [nycphp-talk] Using
$_FILES["whatever"]["type"] correctly
To: NYPHP Talk <talk at lists.nyphp.org>

Message-ID: <ACA112D8-468C-11D8-8CFE-0003938BDF32 at localnotion.com>

Content-Type: text/plain; charset=US-ASCII; format=flowed


On Jan 14, 2004, at 12:02 AM, Webapprentice . wrote:

> Hi,
>
> I'm trying to compare the type of file I uploaded with certain
MIME 
> types as part of a series of checks.
>
> In one case, $imageType was equal to "image/jpeg" but
it still fell 
> into my error area.

>By one case, do you mean one particular file always does this , or it 
>happened once and not again?




-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm




More information about the talk mailing list