diff --git a/dist/ng-flow-standalone.js b/dist/ng-flow-standalone.js index a376676..b969e39 100644 --- a/dist/ng-flow-standalone.js +++ b/dist/ng-flow-standalone.js @@ -638,6 +638,16 @@ return ret; }, + /** + * Returns the count of files in the queue + * @function + * @returns {number} + */ + getFilesCount: function () { + var count = this.files.length; + return count; + }, + /** * Returns the total size of all files in bytes. * @function @@ -968,6 +978,22 @@ return this._prevProgress; }, + /** + * Get current number of complete chunks + * @function + * @returns {number} from 0 to chunks.length + */ + completeChunks: function () { + var completeChunks = 0; + + each(this.chunks, function (c) { + if(c.progress() === 1){ + completeChunks++; + } + }); + return completeChunks; + }, + /** * Indicates if file is being uploaded at the moment * @function @@ -1922,4 +1948,4 @@ angular.module('flow.transfers', ['flow.init']) }; }]); angular.module('flow', ['flow.provider', 'flow.init', 'flow.events', 'flow.btn', - 'flow.drop', 'flow.transfers', 'flow.img', 'flow.dragEvents']); \ No newline at end of file + 'flow.drop', 'flow.transfers', 'flow.img', 'flow.dragEvents']);