jpeg photo file upload problem

From: Date: Thu, 17 Jul 2003 02:48:58 +0000
Subject: jpeg photo file upload problem
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-155522@lists.php.net to get a copy of this message
Hi All, 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

« previous php.general (#155522) next »