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.