File type is checked by its mime-type