Finished code for single row upload