Re: Recomposed per instructions??? jpeg photo file upload problem

From: Date: Thu, 17 Jul 2003 08:01:28 +0000
Subject: Re: Recomposed per instructions??? jpeg photo file upload problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-155563@lists.php.net to get a copy of this message
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 */

« previous php.general (#155563) next »