added ability to upload a file in file.create.