Is there any way to check the size of the file when it is about to be uploaded with jquery ?
+1
A:
You can't do this with jQuery...or with JavaScript at all :) Mainly for security reasons you can't allowed to do most things with files (at least using only JavaScript).
However there are non-pure-JS alternatives that may be an option, like SWF Upload, Uploadify, fancyupload, etc.
There's a question here with a decent list of alternatives available.
Nick Craver
2010-05-28 12:38:58
+1
A:
Have a look at the jQuery Uploadify plugin. It can check file sizes, but it uses flash internally to get this info.
Mark Redman
2010-05-28 12:38:59