hi,
I want to keep the acutally filename to db/Description. is it possiable ? (CCK filefield)

Thanks.

CommentFileSizeAuthor
#1 transliteration-orig_name.patch716 bytessmk-ka
#1 custom.zip848 bytessmk-ka
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

smk-ka’s picture

Title: how to save the Real/acutally filename to db » How to save the original/unaltered filename?
Component: Miscellaneous » Code
Category: support » feature
Status: Active » Fixed
FileSize
848 bytes
716 bytes

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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.