javascript - Cancel upload angular-evaporate -
i using angular-evaporate https://github.com/uqee/angular-evaporate uploading files amazon web service(aws). need add cancel button in it.there function available in evaporate.js.
_.cancel = function(id){ l.d('cancel ', id); if (files[id]){ files[id].stop(); return true; } else { return false; } };
but don't know how cal on button click.i new in angulare js,please me.
it should done in latest master branch (added 13 may), not in 1.4.3. install master, run
bower uninstall angular-evaporate bower install angular-evaporate#master
you fork stable version or change angular-evaporate.js part eva._.add({
, change file.id = eva._.add({
, once adding complete, proxy evaporate.js method
file.cancel = function(){ eva._.cancel(file.id); };
Comments
Post a Comment