Is it possible

See all posts Reply

Is it possible new!
by Don, 11 years, 10 months ago
Is there a way to check file size BEFORE uploading, and prevent wasting time for and upload just to see a message that it's to big ?

I couldn't see any examples of such scenario hereReply
Re: Is it possible new!
by colin, 11 years, 9 months ago
You need to do that on the client side, although you will need to trust the client.

On traditional upload forms, you can use MAX_FILE_SIZE:
< input type="hidden" name="MAX_FILE_SIZE" value="500" />

But if you use XMLHttpRequest (the last version of the class supports this), you can check the size via JS.Reply