RE: [PHP] Check Uploaded File
| From: | Rich Gray | Date: | Thu, 19 Dec 2002 18:57:14 +0000 |
| Subject: | RE: [PHP] Check Uploaded File | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128836@lists.php.net to get a copy of this message | ||
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:shaun@mania.plus.com]
Sent: 19 December 2002 02:24
To: php-general@lists.php.net
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