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.
Am Mittwoch, 30. Juli 2014 20:50:25 UTC+2 schrieb Sanjay Mishra: > > 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 > > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/46d8bfed-3c9f-4fe2-8620-8e6d37902939%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
