[Javascript] Checking local file size

David T. Lovering dlovering at gazos.com
Tue Apr 1 21:38:32 CST 2003


The method I described works on the client side.

-- Dave

"Lau at goldenweb.com.au" wrote:
> 
> I'm getting charged for upload bandwidth so I want to stop the user
> uploading a 10gig file. If I do it on the server its too late - I've already
> been charged.
> 
> ----- Original Message -----
> From: "Craig Neal" <nealweb at telusplanet.net>
> To: "[JavaScript List]" <javascript at LaTech.edu>
> Sent: Wednesday, April 02, 2003 11:53 AM
> Subject: Re: [Javascript] Checking local file size
> 
> > Why check it on the client side? Most FileUpload components have a method
> to
> > check the file size anyway and you can not save it if the file exceeds the
> > file size limit that you select.
> >
> >
> > ----- Original Message -----
> > From: "Lau at goldenweb.com.au" <lau at goldenweb.com.au>
> > To: "[JavaScript List]" <javascript at LaTech.edu>
> > Sent: Tuesday, April 01, 2003 6:46 PM
> > Subject: [Javascript] Checking local file size
> >
> >
> > > Hi,
> > >
> > > I have an ASP program that lets a user upload a file (using ASPUpload).
> > But
> > > now I want to check the size of the file before they upload it so I can
> > put
> > > an upper limit on the size of files they can upload.
> > >
> > > Is there a way I can check the size of a file on the users local drive
> > using
> > > javascript? If not what other methods are available?
> > >
> > > Thanks in advance
> > > Lau
> > >
> > >
> > >
> > > _______________________________________________
> > > Javascript mailing list
> > > Javascript at LaTech.edu
> > > https://lists.LaTech.edu/mailman/listinfo/javascript
> > >
> >
> > _______________________________________________
> > Javascript mailing list
> > Javascript at LaTech.edu
> > https://lists.LaTech.edu/mailman/listinfo/javascript
> 
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript


More information about the Javascript mailing list