I do not believe this can be done javascript alone.

I know of four ways to determine the size of the image:

1. Using a Flash-based uploader, such as SWFUpload.
2. On the server are the post has been received and the stream deserialized.
3. Using an ActiveX component in javascript (IE only - yuck)
   new ActiveXObject("Scripting.FileSystemObject"); 
4. Using a Java servelet (though I don't know much about how this would
work).

JK

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Uwe C. Schroeder
Sent: Tuesday, March 04, 2008 9:21 AM
To: jquery-en@googlegroups.com
Cc: Rick
Subject: [jQuery] Re: how to get the size of the image file before user
upload it.



Does swfupload work on all platforms/browsers? Last time I tried a
flash-based 
uploader it crashed FF (linux) every time.

Uwe


On Tuesday 04 March 2008, Rick wrote:
> swfupload can do that :)
>
> On 4 mrt, 04:25, Xinhao Zheng <[EMAIL PROTECTED]> wrote:
> > hi all,
> >
> >     is there a way to do this that can work both under ie and FF.thanks
> > in advance.
> >
> > George



Reply via email to