It would be good to specify also `type=FileType()` so that it fails with a user-friendly error message when the file does not exist or is not readable.