Page 1 of 1

Mozilla error when uploading photo. IE works fine.

Posted: Fri Aug 27, 2004 10:25 pm
by voltrader
Up till now, I've been testing my scripts on IE.

I have a page where a user can upload a photo for a profile, and everything works smoothly in IE.

I tested it using Mozilla, and I get a bunch of header errors as so:

Warning: imagecreatefromgif(): '/usr/www/users/website/images/1e8187afd0e3552c25c201ee4627fd73.gif' is not a valid GIF file in url

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in ...

Why would a client side interpreter produce server side errors?

Posted: Fri Aug 27, 2004 10:36 pm
by genetix
IE makes life simple. In doing so it also makes poor quality scripts on the web. I would suggest first updating your HTML as I am assuming you probably haven't done. Make sure your HTML is coded according to standards.

It may have something to do with the way the form is sent to the next page.

Posted: Fri Aug 27, 2004 11:43 pm
by voltrader
HTML in main page seems to be pretty standard.

I also get a bunch of header errors:

Cannot modify header information - headers already sent by (output started at /usr/www/users/website/includes/...)

I believe this means HTML is being sent to browser before header renders(?).

Posted: Sat Aug 28, 2004 12:39 pm
by Illusionist
it might help to see your code...