Open hank-hong opened 8 years ago
@hank-hong: look here for an example of usage in GlobaLeaks: https://github.com/globaleaks/GlobaLeaks/blob/master/client/app/js/controllers/fileupload.js#L4
Hello @evilaliv3 Thanks for you response, but the project I created was according to your demo. I also put them in on control, but it also doesn't work in my project. It's weird.
By the way, I added and used other method, ex flow-file-success="someHandlerMethod( $file, $message, $flow )" or flow-complete=" ... ", these methods were also not triggered, only flow-file-added works. It's weird!!! Is it possible that flow-init="{singleFile:true}" block them?
You can take a look at this issue: https://github.com/flowjs/ng-flow/issues/140
The version I used is: angular ~1.2.0 ng-flow ~2
HTML :
JS:
I want to avoid upload the file whose size is larger than 1M. But the event "on" won't listen to the event "flow::fileAdded", this method won't be triggered. Could someone please help me to resolve it?
Thanks