<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>Hi Paul<BR>
<BR>
Hahahahaa,<BR>
If I wasn't drunked last night and didn'tmcompletely missunderstood <BR>
the problem, I believe it is very easy to get it done via javascript.<BR>
<BR>
As I remember (?)Tedd asked about how to disable or prevent the <BR>
client from uploading large pictures, suppose, not bigger than 500k.<BR>
<BR>
All it takes is just a little bit of imagination or creativity. I will describe<BR>
the routine not the code itself since you all know how writte one.<BR>
<BR>
You will need a "bypass function" for "submit".<BR>
1. get the picture file to load on the page.<BR>
2. use the onload event of the image object to check for image filesize. <BR>
3. compare, the actuall f-size with your max limit size, and let the "con-<BR>
ditional" decide what statement to execute.<BR>
4 That is: alert box that tells the user the file exceeds the maximum <BR>
alowed or submit it right away.<BR>
<BR>
And it will all take only a second for the function to complete.<BR>
<BR>
If I wasn't clear, please dont hesitate to ask. I might find some time to<BR>
actually write the code and post it here.<BR>
:)<BR>
Regards<BR>
<BR>
<BR>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <BR> Troy III <BR> progressive art enterprise<BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR><BR><BR><BR><BR>
<HR id=stopSpelling>
<BR>
> Date: Thu, 12 Jul 2007 19:18:31 -0700<BR>> To: javascript@latech.edu<BR>> From: paul@juniperwebcraft.com<BR>> Subject: RE: [Javascript] Resizing images client-side<BR>> CC: <BR>> <BR>> At 7/12/2007 06:11 PM, Troy III Ajnej wrote:<BR>> >Why don't you simply get the filesize of the image the client is about<BR>> >to upload (via client script) and hit him with the message: "this file is<BR>> >to large\n the file must be smaller than...," etc.<BR>> <BR>> <BR>> Hi Troy,<BR>> <BR>> I'd love to see your example of how this can be accomplished with JavaScript.<BR>> <BR>> Regards,<BR>> <BR>> Paul<BR>> __________________________<BR>> <BR>> Paul Novitski<BR>> Juniper Webcraft Ltd.<BR>> http://juniperwebcraft.com <BR>> <BR>> _______________________________________________<BR>> Javascript mailing list<BR>> Javascript@LaTech.edu<BR>> https://lists.LaTech.edu/mailman/listinfo/javascript<BR><BR><br /><hr />Local listings, incredible imagery, and driving directions - all in one place! <a href='http://maps.live.com/?wip=69&FORM=MGAC01' target='_new'>Find it!</a></body>
</html>