Re: Upload file on IE8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx> 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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux