Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 91473 invoked from network); 13 Dec 2007 22:26:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Dec 2007 22:26:10 -0000 Received: (qmail 72324 invoked by uid 500); 13 Dec 2007 22:25:56 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 72270 invoked by uid 500); 13 Dec 2007 22:25:56 -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 72261 invoked by uid 99); 13 Dec 2007 22:25:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Dec 2007 14:25:56 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=MSGID_MULTIPLE_AT,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Konstantin.Breu@gmx.net designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 13 Dec 2007 22:25:57 +0000 Received: (qmail invoked by alias); 13 Dec 2007 22:25:36 -0000 Received: from f048233024.adsl.alicedsl.de (EHLO nbkbreu) [78.48.233.24] by mail.gmx.net (mp039) with SMTP; 13 Dec 2007 23:25:36 +0100 X-Authenticated: #32267959 X-Provags-ID: V01U2FsdGVkX185hTkOvxA5eZUETyfIsSBV2yG6mO9yOCJWHikeDU NXCs0PM3Ewop6d From: "Konstantin Breu" To: "'Jakarta Commons Users List'" References: <818087.3556.qm@web57404.mail.re1.yahoo.com> <003601c83db2$340ba2f0$4900a8c0@dwdomain.local> <1197583574.6595.2.camel@simon-laptop> In-Reply-To: <1197583574.6595.2.camel@simon-laptop> Subject: AW: get image dimensions before upload? Date: Thu, 13 Dec 2007 23:25:36 +0100 Message-ID: <001f01c83dd7$15ad6fd0$41084f70$@Breu@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acg91HVGKZmBv+MESZSUvF+P2uXcFQAAd4Fg Content-Language: de x-cr-hashedpuzzle: aCs= qp0= Av2d BlBm B715 DSTM Drdu D6wO FNF5 Gr/z ImQn IzWd JFQW JZgF JdFG KVnn;1;dQBzAGUAcgBAAGMAbwBtAG0AbwBuAHMALgBhAHAAYQBjAGgAZQAuAG8AcgBnAA==;Sosha1_v1;7;{8E2D2046-819B-40E3-BDCF-1741784D5478};awBvAG4AcwB0AGEAbgB0AGkAbgAuAGIAcgBlAHUAQABnAG0AeAAuAG4AZQB0AA==;Thu, 13 Dec 2007 22:25:25 GMT;QQBXADoAIABnAGUAdAAgAGkAbQBhAGcAZQAgAGQAaQBtAGUAbgBzAGkAbwBuAHMAIABiAGUAZgBvAHIAZQAgAHUAcABsAG8AYQBkAD8A x-cr-puzzleid: {8E2D2046-819B-40E3-BDCF-1741784D5478} X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org > 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. >=20 > 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.=20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org