A video uploader for your site can resume an interrupted upload, and generate a thumbnail upon completion. To make this uploader resumable, the server needs to keep track of how much a file has already been uploaded, and be able to continue from where it left off. The first five lines include the required libraries, the next line instructs the server to listen on port 8080, and the handler function simply passes the contents of our HTML file.

9m read timeFrom code.tutsplus.com
Post cover image
Table of contents
IntroStep 1: The HTMLStep 2: Making it WorkStep 3: The Socket.io ServerStep 4: Some Socket.io EventsStep 5: Handling The EventsStep 6: Keeping Track of the ProgressStep 7: The ThumbnailStep 8: Finishing UpConclusion

Sort: