>> on a side note how can you tell the file size
>> of the image before uploading to the server.

With the caveat that this will only work on Windows Clients and the client
must agree to an ActiveX install:

<script language="_javascript_">
function A()
{
var oas = new ActiveXObject("Scripting.FileSystemObject");
var d = document.a.b.value;
var e = oas.getFile(d);
var f = e.size;
alert(f + " bytes");
}
</script>
</head>
<body>
<form name="a">
<input type="file" name="b">
<input type="button" name="c" value="SIZE" > </form>

Best Regards,

Dennis Powers
UXB Internet- A Website Design and Hosting Company
690 Wolcott Road - P.O. Box 6028
Wolcott, CT 06716    tel: (203)879-2844
http://www.uxbinternet.com
http://dennis.uxb.net
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to