Shaun Run getimagesize() on the uploaded file - if a valid jpeg the returned array[2] will be set to 2...
http://www.php.net/manual/en/function.getimagesize.php HTH Rich -----Original Message----- From: shaun [mailto:[EMAIL PROTECTED]] Sent: 19 December 2002 02:24 To: [EMAIL PROTECTED] Subject: [PHP] Check Uploaded File Hi, Is it possible to ensure that a user is uploading a jpeg file from a form and nothing else? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php