1

Is there any way to check the size of the file when it is about to be uploaded with jquery ?

2 Answers 2

1

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.

Sign up to request clarification or add additional context in comments.

Comments

1

Have a look at the jQuery Uploadify plugin. It can check file sizes, but it uses flash internally to get this info.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.