Re: Uploading Images
| From: | Greg Donald | Date: | Mon, 01 Nov 2004 15:58:42 +0000 |
| Subject: | Re: Uploading Images | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-200842@lists.php.net to get a copy of this message | ||
On Mon, 1 Nov 2004 07:44:13 -0800, bb9876 <bradbrevet@ropeofsilicon.com> wrote:
> I want to allow people to upload images but I want to be able to put
> limitations on it, such as allow only jpg and gif extensions
$_FILES['userfile']['type'] contains the mime type.
> and make sure
> the image is no larger than 60x60. Is there any way to do this?
getimagesize( $_FILES['userfile']['tmp_name'] ) contains the size info.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/