[Javascript] Getting the file size

Hakan M (Backbase) hakan at backbase.com
Thu Sep 2 03:22:29 CDT 2004


If you mean getting the size of a file specified in a fileupload form 
element, there is as far as I know no way of doing this client side. 
What you can do is check the post data on the server, look for the 
Content-length header (or something along those lines) and determine if 
it's too big/not big enough.

Regards,
H

dev at qroute.net wrote:
> How do you get the file size of an mpeg file so before upload it can be
> validated ?
> 
> Looks like filesize is the right property to get to the info but how do you
> run it ?
> Thank you
> 
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
> 
> 



More information about the Javascript mailing list