Problem/Motivation
It is not possible to add a out-of-the-box field for the Original Filename of the entity file field
Proposed resolution
Remaining tasks
User interface changes
The new field label will have to be named with the desired name
API changes
If form alter is going to be user, refer to https://api.drupal.org/api/drupal/core!modules!system!form.api.php/funct...
Original report by andypost
Not sure we able to add a "original filename" field for file entity - this cold be a feature but Very useful in success D8MI so probably we need a follow-up here
Comments
Comment #1
andypostI think this should be a task because D8 brings a lot of multilingual enhancements but file handling still not woking in some cases causing to use File (Field) Paths which simply adds
orignamecolumn tofile_managedtablethe starter issue #1842718-10: Use new Transliteration functionality in core for machine names already has some starting code, but without changing schema it's no go
Comment #2
xjmComment #3
jhodgdonI think this is not really a Transliteration issue, but a File Entity issue. I don't think anything needs to change in the Transliteration system for this to happen. It's about the File entity storing both the original and transliterated file name, right?
Comment #4
klonos...I guess yes.
Comment #5
andypostAnother reason to store original file name is that drupal can change uploaded name for security reasons
Comment #6
lucaschain commentedComment #7
andypostdata model changes is needed so 8.1, also needs upgrade path
Comment #23
smustgrave commentedThank you for creating this issue to improve Drupal.
We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. 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!
Comment #24
smustgrave commentedWanted to bump this 1 more time if still a task or a feature request and should be closed?
Comment #25
berdirI think it's fine to close this. this predates media in core, file entities are mostly an invisible, non-translatable technical entity type. The media name is the visible part and that can be fully customized and translated.