Edited the file to handle index.html uploading