Can JavaScript be used to verify a file's size before it is uploaded to the server at the client side?
This application is developed using EXTJS and Java and is limited to Internet Explorer 7 on Windows XP machines. ActiveX cannot be used.
The workflow is as follows: A user selects a file for upload. Validation immediately checks for file type and size. If the file size exceeds the limit, an error prompt is displayed. If the file size is within the limit, the full file path is sent to the server (Java servlet) for upload.
Is it possible to achieve file size checking and reading the full file path using JavaScript?