RE: [PHP] Quick imageSize question
| From: | Ford, Mike | Date: | Thu, 14 Oct 2004 10:16:51 +0000 |
| Subject: | RE: [PHP] Quick imageSize question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-199469@lists.php.net to get a copy of this message | ||
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm
On 13 October 2004 16:12, Mag wrote:
> Hey,
>
> Dont worry about talking crap, I took that risk when I
> started this thread :-) I was hopeing that maybe the
> image would have the info incoded in it which php
> could read before going through the upload....or
> something like that.
Your PHP script doesn't even get started until *after* all file uploads have
been completed, so that line of thought is a complete non-starter. The only
place you're going to have a chance of checking the image size before it
gets uploaded is in the browser using JavaScript (or an embedded applet in
some other language such as Java).
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@leedsmet.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211