I am working on a web application which supports file uploading. I am already familiar checking the size in server side, but i wanted to check the file size in a client side.
You can have the following Code to get Gmail feature:
Hope this help.