If you can use Javascript you can call this function:

function getImageWidth(imgName) {
        var img = new Image()
        
        img.src = imgName;
        return img.width;
}

where imgName is the full path of the image.  This works without having to
upload the file first.  You could also have a similar function to get the
height (just return img.height).


-----Original Message-----
From: Leon Greeff [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 12, 2000 4:46 AM
To: Fusebox
Subject: Image validation in a form


This is a multi-part message in MIME format.

------=_NextPart_000_0000_01C03452.B3317760
Content-Type: text/plain;
        charset="Windows-1252"
Content-Transfer-Encoding: 7bit

Hi

I want to upload images to my server. Does anyone know how to validate the
weight, width , height, and type BEFORE uploading the images?

Thanx for the help.

Leon



------=_NextPart_000_0000_01C03452.B3317760
Content-Type: text/html;
        charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Dwindows-1252" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D290124311-12102000>Hi</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D290124311-12102000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D290124311-12102000>I want =
to upload=20
images to my server. Does anyone know how to validate the weight, width =
,=20
height, and type BEFORE uploading the images?</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D290124311-12102000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D290124311-12102000>Thanx =
for the=20
help.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D290124311-12102000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D290124311-12102000>Leon</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D290124311-12102000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D290124311-12102000></SPAN></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0000_01C03452.B3317760--

----------------------------------------------------------------------------
--
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to