Finished code to upload/convert