Create a new file object to pass to RestClient