[Javascript] How to get the width, length of File Upload

john saylor js0000 at gmail.com
Thu Sep 13 08:18:48 CDT 2007


hi

On 9/13/07, Sriram Venkatasubramanian <Sriram.V at adea.com> wrote:
> I want to check the width and bredth of a image which user has uploaded
> using the <input type='file' name='photo' /> in a Form.

i'm not aware of the image() method doing anything other than
returning a reference to an image tag on the page. but a file upload
is a completely different beast ...

the only thing that comes to mind is to send it to the server and have
the server return something [via httprequest] that you could use in
the page.

-- 
\js  [ http://or8.net/~johns/ ]



More information about the Javascript mailing list