Is there any other way that I can just check the size of a file before upload? The requirement is if the file exceeded the limit, the form mustn't submit. If it's not, I have to do the ordinary upload using the form and I don't have to exactly upload the file to the server using Flash.
Other ways to check the file size before upload
file uploadswfupload
Related Topic
- Javascript – jQuery Ajax File Upload
- Django File upload size limit
- JavaScript file upload size validation
- Json – How to upload a file with metadata using a REST web service
- Jquery – Sending multipart/formdata with jQuery.ajax
- How does HTTP file upload work
- Javascript – Check file size before upload
- Javascript – How to check file MIME type with javascript before upload
Best Answer
Not in JavaScript, the file size is not in the DOM.