dropbox-sdk-js icon indicating copy to clipboard operation
dropbox-sdk-js copied to clipboard

add api to allow upload progress monitoring

Open acornejo opened this issue 7 years ago • 4 comments

This is fairly straightforward to do with superagent (which is used by this sdk).

request
   .post('/files/upload')
   .send(file)
   .on('progress', function(e) {
      console.log(e.percent);
   }

Thus just need to change the API to allow the user to specify a progress callback.

acornejo avatar Sep 24 '17 16:09 acornejo

Thanks! I'll send this request along to the team.

greg-db avatar Sep 25 '17 15:09 greg-db

Are open source contributions for these type of issues allowed @greg-db ?

nikshepsvn avatar Oct 10 '17 19:10 nikshepsvn

@nikshepsvn Sure, we welcome pull requests.

greg-db avatar Oct 10 '17 19:10 greg-db

@nikshepsvn thanks for offering, if you were. One thing I'd like to warn you about is that we are moving to fetch soon, so a change dependent on superagent might be really short-term for you.

pran1990 avatar Oct 10 '17 19:10 pran1990