flowjs / ng-flow

Flow.js html5 file upload extension on angular.js framework
http://flowjs.github.io/ng-flow/
MIT License
1.38k stars 303 forks source link

How to tell if all files are uploaded? #138

Open renege opened 9 years ago

renege commented 9 years ago

How to find out if all images are uploaded? I have for each image:

<div ng-repeat="file in obj.flow.files">

    <img flow-img="file">

    <section ng-show="(file.sizeUploaded() / file.size * 100) < 100">
        <progress value="{{ (file.sizeUploaded() / file.size * 100) }}" max="100"></progress>
    </section>

</div>
AidasK commented 9 years ago

There is no such method, you should open a pull request for flow.js repo.

isComplete method is only available for a single file, but not for a main object itself. You can also use progress method instead, progress() === 1. There is also a complete event https://github.com/flowjs/flow.js#events

renege commented 9 years ago

thats it?