Loading...
 
Skip to main content

Features / Usability


Replacing files

Good morning,

we came to the point, where new versions of files in the galleries should be uploaded. The problem is, that we used the ids for referencing, so we can't simply upload the new file while deleting the other.

Are there any means to replace a file in a file gallery?


Yes, there is a dirty way.

If you look in the table for the database and get the hash name from the file gallery table, you can then simply delete it from the file system storage area and then ftp upload the new one, and rename it to the hash mark.

If your storage is in the database, you have a problem.

Damian


Quick hacks are no option for a production use (anyway, we _do_ store the files in the database...).

The problem could be solved by providing a means for referencing files/images by name, e.g.
/tiki-download_file.php?fileName=ABC

Are there any plans for this?


It's hard to answer to such question. I don't have such plans and know nobody that has. Most likely it could be on your plan😉