krishnaraj
krishnaraj

Reputation: 25

Finding File Size in javascritpt

I am trying to find the file size before upload

i use the code file[0].size but it is not working IE

Please help me to get the file size in IE To

Thank You

Upvotes: 1

Views: 104

Answers (1)

MaxArt
MaxArt

Reputation: 22617

That works in IE10. But, since the size property of File objects is HTML5 specific, there's no chance you can do that with pure Javascript in IE9 and older. Yes, that sucks.

You'll have to rely on some Flash solutions or something like that.

Upvotes: 1

Related Questions