Determine file type by constant