Finished the upload method