Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle progress of file upload #6

Closed
hemantgogia09 opened this issue Apr 26, 2016 · 3 comments
Closed

Handle progress of file upload #6

hemantgogia09 opened this issue Apr 26, 2016 · 3 comments

Comments

@hemantgogia09
Copy link

hemantgogia09 commented Apr 26, 2016

How can handle progress of file upload on a workspace? Sorry to open an issue here for this question, but i am not able to find it anywhere in your docs. Basically i want to show a progress bar for how much size of file is uploaded.

@swells
Copy link
Member

swells commented Apr 30, 2016

At the moment you can't. I will try and take this as an action item.
My thought would be something like this:

   .on('progress', function(e) {
      console.log(e.percent);
   }).end();

I will have to see if I can also expose this feature for .pipe() on node.

@swells
Copy link
Member

swells commented Apr 30, 2016

What environment are you needing this in (browser|node)? This should be doable for the browser with little effort. Node will take more thought as the writable streams do not have an easy way to grab a 'data' event.

On Tue, Apr 26, 2016 at 3:37 AM, Hemant Gogia notifications@github.com
wrote:

How can handle progress of file upload on a repository? Sorry to open an
issue here for this question, but i am not able to find it anywhere in your
docs.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#6

@hemantgogia09
Copy link
Author

Browser only. Could you suggest me how can i achieve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants