[jQuery] Re: how to get the size of the image file before user upload it.

2008-03-06 Thread Bil Corry
[EMAIL PROTECTED] wrote on 3/5/2008 1:40 PM: Flash is the only known way to get any dimension related information from an image before it is uploaded. Or a Java-based uploader, like JUpload: JUpload can resize and convert the image to the desired format/size be

[jQuery] Re: how to get the size of the image file before user upload it.

2008-03-05 Thread Michael Ray
ahh the limitations of technology. who knew that flash would be the solution? what an unlikely bedfellow. On Wed, Mar 5, 2008 at 1:40 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi all, > > I've had lots of run-ins with this sort of problem - lol - and > basically ... > > 1: PHP cannot d

[jQuery] Re: how to get the size of the image file before user upload it.

2008-03-05 Thread [EMAIL PROTECTED]
Hi all, I've had lots of run-ins with this sort of problem - lol - and basically ... 1: PHP cannot determine anything about a file until it has it on the server 2: Javascript can create an object, and fill it, and then check the size BUT the file also needs to be on the server which just leaves

[jQuery] Re: how to get the size of the image file before user upload it.

2008-03-05 Thread Hamish Campbell
File size or dimensions? On Mar 4, 4:25 pm, 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

[jQuery] Re: how to get the size of the image file before user upload it.

2008-03-04 Thread Jeffrey Kretz
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 wro

[jQuery] Re: how to get the size of the image file before user upload it.

2008-03-04 Thread Uwe C. Schroeder
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

[jQuery] Re: how to get the size of the image file before user upload it.

2008-03-04 Thread Alexandre Plennevaux
which means... via Flash. On Tue, Mar 4, 2008 at 5:57 PM, Rick <[EMAIL PROTECTED]> 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.

[jQuery] Re: how to get the size of the image file before user upload it.

2008-03-04 Thread Rick
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

[jQuery] Re: how to get the size of the image file before user upload it.

2008-03-04 Thread Diego A.
Good point Shawn, BUT that won't (or at least shouldn't) work on modern browsers due to security reasons, so it's not a reliable solution. The only *real way* is with a Java Applet (and maybe Flash). On Mar 4, 1:58 pm, Shawn <[EMAIL PROTECTED]> wrote: > I don't know of any reliable way to do so.

[jQuery] Re: how to get the size of the image file before user upload it.

2008-03-04 Thread Shawn
I don't know of any reliable way to do so. But if I were to speculate a bit If you were to use JS to create an img object and set it's src to the local path to the image file. Then use the .ready() method on that object, you *might* be able to extract the height/width, put those into f