[Javascript] Resizing images client-side

Mike Dougherty mdougherty at pbp.com
Fri Jul 13 00:20:22 CDT 2007


On 7/12/07, Paul Novitski <paul at juniperwebcraft.com> wrote:
> At 7/12/2007 06:11 PM, Troy III Ajnej wrote:
> >Why don't you simply get the filesize of the image the client is about
> >to upload (via client script) and hit him with the message: "this file is
> >to large\n  the file must  be smaller than...," etc.

> I'd love to see your example of how this can be accomplished with JavaScript.

<label for="filesize">Enter the size of the file:</label>
<input id="filesize" name="filesize" type="text" >

(ok yes, I'm kidding)



More information about the Javascript mailing list