Also get the filetype

To set the output filetype equal to the source file