Should check for file_type->id rather than name