Heeeeeeeeeeeeeelp. Image upload issue.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
caledoniaman
Forum Newbie
Posts: 2
Joined: Wed Feb 11, 2004 6:09 pm

Heeeeeeeeeeeeeelp. Image upload issue.

Post by caledoniaman »

Evening all. New to the boards.

Been getting some mental calls from a client who says he cant upload images to his site using admin pages I built.
Site is in development but he has access to approve etc etc.

I have been able to upload images no problem using the self same admin pages. Works every time. After much uploading I've narrowed the issue dow n to IE not uploading JPEG images (I use Firefox so didn't notice the problem, and may only have uploaded GIF's or PNG's suing IE in early testing).

IE does the same with my local webserver as well. No upload.

Can anyone help. It's driving me nuts. The admin pages are a PHP/Access combo.
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

Maybe it's a file size limit problem as jpeg's are usually bigger than pngs/gifs etc..
Find out the size of the image the client is trying to upload and see if you can upload an image of similar size using Firefox, if you can't then the image is probably over your max file size limit.
microthick
Forum Regular
Posts: 543
Joined: Wed Sep 24, 2003 2:15 pm
Location: Vancouver, BC

Post by microthick »

Are you limiting the types of files that can be uploaded in your php script?
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Yeah, as microthick is leading towards, IE seems to decide that jpegs are type image/pjpeg - check out this thread for more info:
viewtopic.php?t=16651&highlight=pjpeg

Mac
caledoniaman
Forum Newbie
Posts: 2
Joined: Wed Feb 11, 2004 6:09 pm

Post by caledoniaman »

I am limiting file types.

It dawned on me today that Exploder might have sent a different file type variable to the server than other browsers do. Will need to try this tonight. Thanks guys.
Post Reply