Most of the code for file uploading to the server is now set up.