On Mon, 2010-01-25 at 17:41 -0500, Ernie Kemp wrote:

> 
> 
> Good Day,
> 
>  
> 
>                 I’m having an issue with IE8, when I go to load a file
> the program is not filling the $_FILES['user_file']['type']  .
> 
> 
>               When I display  “echo  "Start".$_FILES['pix']['type']."End";”  
> in IE8 I get “StartEnd” with nothing in between.  I expected “image/pjpeg".
>  
>                     On FireFox I get “image/jpeg".
>  
>                     Any suggestions?
> Thanks,
> ..../Ernie
>  
> 
> 
>  

What do the other $_FILES fields say? Are they populated correctly?

I wouldn't rely on anything sent from the browser. IE is known to send
the mime type that matches the extension, not the contents of the file,
and for .jpg images it sends a different mime to every other browser
anyway, so it's pretty unreliable.

Thanks,
Ash
http://www.ashleysheridan.co.uk


Reply via email to