Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 96283 invoked from network); 13 Dec 2007 22:32:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Dec 2007 22:32:09 -0000 Received: (qmail 80819 invoked by uid 500); 13 Dec 2007 22:31:54 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 80761 invoked by uid 500); 13 Dec 2007 22:31:54 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 80751 invoked by uid 99); 13 Dec 2007 22:31:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Dec 2007 14:31:54 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [213.46.255.22] (HELO viefep12-int.chello.at) (213.46.255.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Dec 2007 22:31:32 +0000 Received: from [192.168.1.101] (really [84.113.196.60]) by viefep12-int.chello.at (InterMail vM.7.08.02.00 201-2186-121-20061213) with ESMTP id <20071213223133.VIED19703.viefep12-int.chello.at@[192.168.1.101]> for ; Thu, 13 Dec 2007 23:31:33 +0100 Subject: Re: AW: get image dimensions before upload? From: simon To: Jakarta Commons Users List In-Reply-To: <001f01c83dd7$15ad6fd0$41084f70$@Breu@gmx.net> References: <818087.3556.qm@web57404.mail.re1.yahoo.com> <003601c83db2$340ba2f0$4900a8c0@dwdomain.local> <1197583574.6595.2.camel@simon-laptop> <001f01c83dd7$15ad6fd0$41084f70$@Breu@gmx.net> Content-Type: text/plain Date: Thu, 13 Dec 2007 23:31:33 +0100 Message-Id: <1197585093.6595.24.camel@simon-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Thu, 2007-12-13 at 23:25 +0100, Konstantin Breu wrote: > > But the question (as I understand it) was whether it is possible to > > check the dimensions *before* the file is transferred from the > client > > machine to the server, ie whether it is possible to get the > web-browser > > to do this check. > > > > And the answer (short of something like activex) is no. > > > Well, in some browsers (IE6, IE5) it's possible. The image src from > the -field can be assigned to a -tag in the > page (possible hidden), then (after loading) the width and height can > be retrieved from this img tag. But this does not work in firefox and > IE7 (according to my tests). So in current browsers it's not > possible. I'm astounded. Amazed. That is possibly the cleverest hack I have heard of this year. Very ugly, but clever. Thanks for sharing that.. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org