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

Send events for progress #7

Open
NicolasRitouet opened this issue Jun 2, 2014 · 3 comments
Open

Send events for progress #7

NicolasRitouet opened this issue Jun 2, 2014 · 3 comments

Comments

@NicolasRitouet
Copy link
Owner

Example with Formidable:

on('progress', function(bytesReceived, bytesExpected) {
var percentageUpload = '100*(bytesReceived/bytesExpected)';
ctx.session.emit(percentageUpload, xxx, xxx); // Should emit only to user
}
@activestylus
Copy link

No pun intended, but any progress on this front?

Looking at my list this is the last feature I need to tick off before I try to sell the framework to our stakeholders

@NicolasRitouet
Copy link
Owner Author

No, somebody started to work on this and we realize that it's actually tricky to get, so, I don't think we'll make it soon :/

@activestylus
Copy link

That's a shame, though I sympathize with your plight. I have solved this problem in two ways before:

https://github.com/freeall/progress-stream works well with multer/express

or

Socket.IO to track progress https://github.com/vote539/socketio-file-upload

Don't know how useful this will be for you but they did the trick on my minimal express apps

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

No branches or pull requests

2 participants