{% set classes = [ 'file', 'file--type-' ~ file.bundle|clean_class, 'file--mimetype-' ~ file.getMimeType|clean_class, not file.isPermanent() ? 'file--temporary', view_mode ? 'file--view-mode-' ~ view_mode|clean_class, ] %}