Re: Upload file on IE8

From: Date: Mon, 25 Jan 2010 22:52:39 +0000
Subject: Re: Upload file on IE8
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-301426@lists.php.net to get a copy of this message
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

« previous php.general (#301426) next »