On Fri, Feb 23, 2001 at 11:08:08AM -0000, Matt wrote: 

> I've written a script to upload image files to a server but need to
> check to make sure there image files so I used the image type posted by
> the browser but that changes depending on the system/browser set-up.
> What I need to do is open the file once its on the server then get the
> content type so it will always be the same if its valid.  > > Does
> anyone know how to do this?

I normally check the mime type to make sure it is a valid image type.
Just check $picture_type for image/pjpeg, image/jpeg, image/gif, etc.

-- 
Jason Stechschulte
[EMAIL PROTECTED]
--
#define NULL 0           /* silly thing is, we don't even use this */
             -- Larry Wall in perl.c from the perl source code

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to