PDA

View Full Version : how to get the file size before upload file by extjs4.1



ZhengYueChuan
16 Jul 2013, 6:40 AM
thanks very much?

slemmon
17 Jul 2013, 9:57 PM
You can't retrieve the file size before upload with ExtJS.

julio.batista
18 Jul 2013, 3:09 AM
If you can use HTML5 APIs, you can get it using file API. You would do something like


// in your file field
var file = input.files[0],
size = file.size;

// your code

ZhengYueChuan
25 Jul 2013, 10:46 PM
You can't retrieve the file size before upload with ExtJS.
thanks