get_file_type should always return a string