Announcement

#1 2017-01-25 10:31:41

mrija
Member
2014-08-12
19

change filename for download

Hello,

I would like a change name of all images in download process. Except filename I would like change e.g. id of image or some pattern (ID_FILENAME_AUTHOR.EXTENSION)

I tried change in action.php $http_headers[] = 'Content-Disposition: attachment; filename="'.$element_info['file'].'";'; to $http_headers[] = 'Content-Disposition: attachment; filename="'.$element_info['id'].'";';
And it is works, but I know that direct edit of source files is not recommended.
I would like ask if exists some plugin for this or if is possible to set this in localeditor?

Thank you for your help
Mira

Piwigo version:
PHP version: 2.7.3
MySQL version:
Piwigo URL: http://localsite

Offline

 

Board footer

Powered by FluxBB

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