Use attachment filename as download filename
-
With shortcode “download”, ZotPress generates links to attachments through the Zotero API. In
request.dl.php
it sets the filename to be “download-[itemid]” (and extension based on content type), resulting in filenames that are uninformative to users.Zotero attachments usually have meaningful filenames, especially since Zotero renames attachments based on metadata by default. This is available as a
filename
property in the Zotero API. It would be wonderful if ZotPress would use that instead of generating its own filename.Proposal: Use the attachment’s own
filename
property instead of making up one.Alternative proposal: Allow users to set a custom filename format (e.g.
%author%_%yyyy%_%title%.pdf
.To be honest I’m only including the alternative proposal to show that the first one is much more straightforward. If you let users handle filenames on the Zotero end it saves everyone trouble.
- The topic ‘Use attachment filename as download filename’ is closed to new replies.