Re: upload picture: limit size problems
| From: | Jason Wong | Date: | Thu, 15 Jan 2004 04:39:17 +0000 |
| Subject: | Re: upload picture: limit size problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174614@lists.php.net to get a copy of this message | ||
On Thursday 15 January 2004 12:03, Matt Hedges wrote:
> with ya'lls help I've gotten a php that uploads only a jpg... now I'm
> trying to add a constraint that limits the width and size... I've been
> reading the manual (don't understand the error_messages)... and can't
> figure it out... this is what I have so far:
You can use getimagesize() to:
i) determine whether uploaded file is a valid JPEG
ii) the (pixel) size of the image
--
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
------------------------------------------
/*
QOTD:
"Do you smell something burning or is it me?"
-- Joan of Arc
*/