Simplify put_file method to a wrapper around put