dpd-fileupload icon indicating copy to clipboard operation
dpd-fileupload copied to clipboard

Send events for progress

Open NicolasRitouet opened this issue 11 years ago • 3 comments

Example with Formidable:

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

NicolasRitouet avatar Jun 02 '14 07:06 NicolasRitouet

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

activestylus avatar Nov 16 '15 10:11 activestylus

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 :/

NicolasRitouet avatar Nov 16 '15 10:11 NicolasRitouet

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

activestylus avatar Nov 16 '15 11:11 activestylus