Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
hi,
I want to keep the acutally filename to db/Description. is it possiable ? (CCK filefield)
Thanks.
Comment | File | Size | Author |
---|---|---|---|
#1 | transliteration-orig_name.patch | 716 bytes | smk-ka |
#1 | custom.zip | 848 bytes | smk-ka |
Comments
Comment #1
smk-ka CreditAttribution: smk-ka commentedIt wasn't possible — until now. I've just committed a small patch to transliteration which stores the original/unaltered filename in $_FILES['files']['orig_name'][<field_name>]. This information can then be accessed by other modules that wish to make use of it.
For demonstration purposes I've written a small module which fulfills what you asked for: it integrates with filefield and sets the description text to the original filename for newly uploaded files.