Finished upload function for csv file