How to save the original/unaltered filename?
droplet - September 24, 2009 - 15:53
| Project: | Transliteration |
| Version: | 6.x-2.1 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
hi,
I want to keep the acutally filename to db/Description. is it possiable ? (CCK filefield)
Thanks.

#1
It 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.
#2
Automatically closed -- issue fixed for 2 weeks with no activity.