upload_object function

Upload a file to a datasource