upload photo / Video in node JS

50 views
Skip to first unread message

Sanjay Mishra

unread,
Jul 30, 2014, 2:50:25 PM7/30/14
to nod...@googlegroups.com
Hi all,

I am planning to upload photo / video. I need to show the progress bar in UI based on how much percentage (%)  is pending or done.  

Can you please help me in following:
1. How do I calculate the percentage of image/ video is loaded, based on my network bandwidth and image / video size? is any node js module is already present for this.
2. if there is no module can some body share the code.

Thanks
Sanjay

greelgorke

unread,
Jul 31, 2014, 5:53:13 AM7/31/14
to nod...@googlegroups.com
there are file upload middleware modules for express on npm. progress calculation is easy: take Content-Size header value, count received bytes and emit the results to the client.
Reply all
Reply to author
Forward
0 new messages