Forum OpenACS Q&A: File-storage, display title instead of file name

Hi,

    My file-storage module displays the file's title when a file is uploaded. To do this, I have modified the folder-chunk.tcl and used $file_upload_name in place of $name earlier.

  When I upload a revision of the file, then the new name of the file is displayed, but not the title. Even the database shows the name of the file in the title column.

    Is there a way to display the title even for the versions.

Regards,
Nitish

Collapse
Posted by Dave Bauer on
What version of file storage are you using?
Collapse
Posted by Nitish Bezzala on
file-storage5.1.0d.

In the cr_items table, the name of the file and the title are saved. So it is ok for the first uploaded file.
But in cr_revisions table, only the file name is saved in the 'title' column. So I don't have a title for revision uploads.