-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Upload progress #243
Comments
Track how much of the stream is consumed and compare it to the stated |
and where do I track the stream consumption? multer doesnt have many callback functionalities... for instance: |
This one seems good if you don't want to roll your own: https://www.npmjs.com/package/progress-stream Pipe req to that one and give it to multer. var p = progress()
var upload = multer().single('file')
req.pipe(p)
p.headers = req.headers
p.on('progress', _)
upload(p, res, _) |
@ Can you give a sample complete working example? |
..sadly the current API implementation doesn't support progress events on upload (see expressjs/multer#243) superagent-module was upgraded on the previous commit in order to get support for the progress event. Now we "only" need that feature on the API.
You can try to listen to the event |
@LinusU |
I haven't tried that package myself, maybe it's a bug in Since this isn't specific to Multer, I think it's better to open a post at Stack Overflow were you should be able to get help with this :) |
How do I track upload progress in multer?
The text was updated successfully, but these errors were encountered: