Before uploading files via a HTML-form, I want to do some client-side validating.
E.g. to check the filesize of the file selected by the user to upload.
Filesize should be,say, between 5MB and 50 MB.

My 'feeling' says there should be such an instruction in Javascript, but I can't find one!

Recommended Answers

All 2 Replies

Nope, not really. By design, a person's browser isn't allowed to snoop around the file system.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.