Is it possible to use Javascript to check for a file's size (at the client side) before it is actually uploaded to the server?
The application is built on EXTJS and Java and is restricted to usage by Internet Explorere 7 on Windows XP machines. No usage of activeX is allowed.
The workflow is as such: User selects a file to upload. Validation kicks in immediately to check for file type and filesize. If filesize exceeds limit, the GUI will prompt with error. If filesize is within the limit, the full filepath will be passed to the server end (java servlet) to be uploaded.
Is the filesize check and reading of full file path possible to be achieved with javascript?