Skip to content

Instantly share code, notes, and snippets.

@digilord
Last active January 1, 2016 13:49
Show Gist options
  • Save digilord/8154137 to your computer and use it in GitHub Desktop.
Save digilord/8154137 to your computer and use it in GitHub Desktop.
Tough Futures question
put.on('progress',function(progress){
// Update SOMETHING with the progress data
Meteor.bindEnvironment(function(){
S3files.update({file_name: file.name}, {$set: {percent_uploaded: progress.percent}});
},function(err){
console.log(err);
});
});
@sixolet
Copy link

sixolet commented Dec 27, 2013

put.on('progress',Meteor.bindEnvironment(function(progress){
    S3files.update({file_name: file.name}, {$set: {percent_uploaded: progress.percent}});
  },function(err){
    console.log(err);
  }));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment