On Thursday 17 July 2003 14:40, John T. Beresford wrote: > 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") {
Did you try echo($type) to see what type is being returned? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* To add insult to injury. -- Phaedrus */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php