Get size fo sum of file uploaded with blueimp
HI sorry for english .
Im searching the way to found the sum of filesize uploaded with blueimp .
I try this :
- <script>
- var sizetotal=0;
- $('#fileupload').fileupload({
- complete: function (e, data) {
- $.each(data.files, function (index, file) {
- sizetotal=sizetotal + file.size;
- });
-
-
- }
- });
- console.log(sizetotal+'|');
- </script>
But in console i have :
jquery.js:358 Uncaught TypeError: Cannot read property 'length' of undefined(…)
The row is this :
- each: function( obj, callback, args ) {
- var value,
- i = 0,
- length = obj.length, // error in this point
- isArray = isArraylike( obj );
Can u help me ? Tank's