Re: Upload file on IE8

From: Date: Mon, 25 Jan 2010 23:52:37 +0000
Subject: Re: Upload file on IE8
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-301430@lists.php.net to get a copy of this message
On Tue, 2010-01-26 at 07:33 +0800, Eric Lee wrote: > On Tue, Jan 26, 2010 at 6:41 AM, Ernie Kemp <ernie.kemp@sympatico.ca> 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 > > > > > > > > I remember a setting from some elsewhere IE 8 was disable set file path > > location > > by default from the options dialog. Did you enabled this already ? If not, > > you may give it a shoot to see than ! > > > > > Hope this help > > > > > > Eric, > > Regards, > > > > > > > > > > > > > But you won't be able to guarantee every IE8 user will do this, so you shouldn't develop the app in such a way that it needs to use the value in the array. Also, as I've said, there isn't much point relying on this value for any reason anyway, as it doesn't guarantee the file is actually of that type. Thanks, Ash http://www.ashleysheridan.co.uk

« previous php.general (#301430) next »