use the file resource, not file type

TelekomLabs-DCO-1.1-Signed-off-by: Edmund Haselwanter <me@ehaselwanter.com>
(github: ehaselwanter)