Creating a new file locally and uploading to server