Re: Quick imageSize question
| From: | Stefan Dengscherz | Date: | Wed, 13 Oct 2004 15:07:45 +0000 |
| Subject: | Re: Quick imageSize question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-199381@lists.php.net to get a copy of this message | ||
Hello,
that's usually not possible because your webserver can't access the image
on your computer; a possible solution might be to determine the image size
via javascript and submit it with the form, so you can accept or deny the
image upload in your php script - problem: with javascript running on client
side, this is not foolproof. Anyways i don't know exactly how to solve it with
javascript even, so please correct me, if i'm talking crap here.
Best regards,
-sd
On Wed, Oct 13, 2004 at 07:37:29AM -0700, Mag wrote:
> The problem with the above is I can only get the
> dimensions AFTER the file has been uploaded and is on
> disk,which is quite a pain in the ... coz I want to
> accept only images that are smaller than x pixels
> width and then i have to tell the client that their
> upload failed coz their image is too big...is there
> any way to get the dimensions before the upload is
> done?