Announcement

#1 2015-09-25 23:37:21

BillE
Member
2015-09-25
2

Auto append text to filename on upload

Hello/Hi/Greetings,

I am currently evaluating piwigo for an artist community site.

Is is possible to append the user name to the photo filename automatically on upload?

For example, user "bill" uploads file img5002.jpg. File is stored on server as bill_image5002.jpg


Thankyou

Offline

 

#2 2015-09-25 23:44:44

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Auto append text to filename on upload

Hi

actually the file on the filesystem is always renamed with a random string, but the original filename is stored in the database and retrieved when the file is downloaded

so if you ask this in order to do some queries on the filesystem, it's unfortunately irrelevant

if you want to renaming be active when a file is downloaded, it's totally possible to do it, but no solution exists currently
you can start here http://piwigo.org/doc/doku.php?id=dev:e … ns:plugins

Offline

 

#3 2015-09-26 03:28:36

BillE
Member
2015-09-25
2

Re: Auto append text to filename on upload

Thanks. That answers one of the concerns I had. The other was more forcing an easy source trail as a visible copyright infringement deterrent. There are sufficient other means in the system so it is no problem although adding it to the download via plugin might be something I would look into at some point in time. For now it looks like Piwigo will do what I need it to do.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact