Provide option on the Generic File Formatter to display file size

Created on 25 June 2012, about 13 years ago
Updated 3 September 2025, 14 days ago

This module should provide an option for displaying uploaded files size near their name in node view, just like the core upload module already does.

Actually, it's quite easy to add file size editing last line of filefield_formatter.inc, this way:

return '<div class="filefield-file">'. $icon . l($link_text, $url, $options) . ' (' . format_size($file['filesize']) . ')</div>';

But imho we should be able to enable it in the config page for the field, without fiddling with the code, to preserve this option in updates.

Feature request
Status

Postponed: needs info

Version

11.0 🔥

Component

file.module

Created by

🇮🇹Italy gerlos

Live updates comments and jobs are added and updated live.
  • stale-issue-cleanup

    To track issues in the developing policy for closing stale issues, [Policy, no patch] closing older issues

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States smustgrave

    Thank you for sharing your idea for improving Drupal.

    We are working to decide if this proposal meets the Criteria for evaluating proposed changes. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or there is no community support. Your thoughts on this will allow a decision to be made.

    Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.

    Thanks!

Production build 0.71.5 2024