How to check file input size with jQuery?

https://stackoverflow.com/questions/1601455/how-to-check-file-input-size-with-jquery
http://felipe.sabino.me/javascript/2012/01/30/javascipt-checking-the-file-size/