upload_file function

Upload data into the users workspace