I faced an issue that while working on Drupal/PHP forms there was a requirement to check upload file size before uploading, and it was required to be done by using javascript or PHP.
Issue is PHP is a server based language, and cannot interact efficiently with the browser in a sense that this is a client side thing.
And if we see javascript, browser show different results and are inconsistant.
I need a solution which can be run on every browser.
Thanks in advance. I am waiting for a solution.
Please note that I need solution for HTML not for HTML5