I have a system that allows a person to upload photos to the server via an admin web form.
I have been using the code for about a year with no problem. I designed it specifically for a client of mine that has just started cruising on a sailboat for a few years.
They tryed uploading a photo from a public library via the web form and they got the error message that it was not a jpeg file.
The relevent PHP code from my system for the checking is:
if ($type != "image/jpeg") { $ReturnSaying = "!! The file is not a JPEG picture. Please try again"; include("photo_error.php"); exit;
Anyway, this system has been tested and tested again on multiple platforms and conditions, except a public library.
Question: Is it possible that the library is using some proxy system that is messing with the file so it comes out bad?
Also, I have confirmed that the file is a jpeg file.
Any ideas are greatly appreciated, John
-- =========================== John T. Beresford, Owner Digital Studio Design Edmond, OK http://www.digitalstudiodesign.com/ 405.760.0794
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php