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

Is there a way to expose uploading progress? #23

Closed
bangonkali opened this issue May 16, 2017 · 3 comments
Closed

Is there a way to expose uploading progress? #23

bangonkali opened this issue May 16, 2017 · 3 comments

Comments

@bangonkali
Copy link

Hi i just tried out this tool. It's awesome. Is there a way or an example you can give for tracking the uploading progress? Is this something that can be done on the client side right away or do i have to implement some sort of custom logic on the server?

@karladler
Copy link

It's possible to handle that in HTML5 File upload API on client side.

@m4nuC
Copy link
Owner

m4nuC commented May 30, 2017

@bangonkali Apologies for the delay. As @abimelex mentioned this is something to be handled on the client side. If you haven't already solved this, have a look at the API doc: https://developer.mozilla.org/en-US/docs/Using_files_from_web_applications

@m4nuC m4nuC closed this as completed May 30, 2017
@nhtua
Copy link

nhtua commented Oct 19, 2017

@m4nuC I think showing the uploading progress is based-on both client and server side. Because xhr.upload.addEventListener("progress", function(e){/**/}) only fire until the server responses any first bytes. So, If you do nothing before asyncBusboy.onFile run, then the client continues to wait to show up 100% only once at the end.

I have tried to pipe some '\n' into server response and the client was starting to fire regularly progress but the output stream format changed also.

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

4 participants