Is there any way to check file size before uploading it using JavaScript?
I ran across this question, and the one line of code I needed was hiding in big blocks of code.
Short answer: this.files[0].size
this.files[0].size
By the way, no JQuery needed.