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 <input type="file">-field can be assigned to a <img>-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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to