Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

File Details

No security coverage Maintenance fixes only 145 sites

This module provides a field formatter for media files, allowing you to display file names, mime type icons, and file size information. Content editors can also control the order in which these details appear and choose to open links in a new tab.

Introduction

The File Details module provides a field formatter for media file entity types.

This module provides the following functionality:

- Add a wrapper class
- Display file or media name
- Display mime icon before link text
- Display mime icon after link text
- Open link in new tab
- Show mime type information
- Show extension type information
- Show file size information

Additionally to providing the ability to display additional file information,
content editors have the ability to control the order in which these items are displayed.
Users can control the order through the following fields:

- Mime type display order
- Extension type display order
- Show file size information

Users can control the order of the display by entering a value between 1 - 3 for each field.
These values will then dictate the order in which the additional information fields are displayed.

Requirements

The File Details module only requires the Drupal core Field module,
no third-party contributed modules or libraries are required.

Installation

* Install as you would normally install a contributed Drupal module. Visit
https://www.drupal.org/node/1897420 for further information.

Configuration

The File Details field formatter works with file media types and requires that
the Drupal core Field UI module be enabled. Field UI provides a "Manage display"
page for the media entity type. From this page you can select the "File Details"
formatter to use for each corresponding field. From the entity page click on
the formatter's gear icon to the right of the field row. This presents the formatter's
configuration page. Fill in the fields accordingly and click "Update" to save that configuration,
and "Save" to save the display.

Additional Information

Styling has been kept minimal, so implementation can be personalised to meet any needs.
The markup structure has been created to be versatile. Users can quite easily create a 2 col
layout using the "show mime icon after text" option.

Drupal 9–10 · not 11

Ask your assistant about File Details

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Oct 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
1.15.0 Stable 9–10 Apr 10, 2024
1.14.0 Stable 8–10 Oct 25, 2023