Page 1 of 1
Image upload not working in IE, working fine in FF
Posted: Thu Mar 12, 2009 2:18 am
by jawedshamshedi
Hi to all,
I am uploading a image in my site with simple move upload, its working fine in FF but when I am using the same code in IE its giving a error page not found. I am uploading four images simultaneously.
Thanks in advance
Jawed
Re: Image upload not working in IE, working fine in FF
Posted: Thu Mar 12, 2009 2:41 am
by jaoudestudios
Wonderful IE working it's f**king magic again!!!! - Sorry, I hate IE and how useless it is, and I include microsoft in that hate list

- but thats another story.
Is the image a jpeg? (or jpeg)
IE and all its wonderfulness renames the extension of a jpeg|jpg and prepends it with a 'p'. So you will get pjpeg|pjpg. F**k knows why?!?!?!?
I am assuming you are checking for a valid extension? If so then you need to add these IE only extensions to the safe/white list.
Re: Image upload not working in IE, working fine in FF
Posted: Thu Mar 12, 2009 3:06 am
by jmut
jaoudestudios wrote:Wonderful IE working it's f**king magic again!!!! - Sorry, I hate IE and how useless it is, and I include microsoft in that hate list

- but thats another story.
Is the image a jpeg? (or jpeg)
IE and all its wonderfulness renames the extension of a jpeg|jpg and prepends it with a 'p'. So you will get pjpeg|pjpg. F**k knows why?!?!?!?
I am assuming you are checking for a valid extension? If so then you need to add these IE only extensions to the safe/white list.
Didn't really know of this p appending things. I suggest using getimagesize() to determine type and validate if image is uploaded. Relying on extensions is no quite right.
Re: Image upload not working in IE, working fine in FF
Posted: Thu Mar 12, 2009 3:17 am
by jaoudestudios
jmut wrote:Didn't really know of this p appending things. I suggest using getimagesize() to determine type and validate if image is uploaded. Relying on extensions is no quite right.
Prepend not append.