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.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | file_w_size_formatter.zip | 3 KB | josaku |
Comments
Comment #1
quicksketchUnless such a feature is added to D7, we probably won't see it here in D6 FileField either. I agree it's a good option, but this suggestion came too late in the D6 cycle to see implementation. Let's move it to the core queue.
Comment #4
josaku commentedThe attached simple module solves this problem.
It is easy to modify this as patch to 8.2.x-dev or higher.
Comment #16
smustgrave commentedThank 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!