IDEX-1095 fix selecting file type by file extension