Attachments have two separate names: the attachment title shown in the items list and the filename of the file on disk.
Zotero has always automatically renamed the files on disk based on parent item metadata such as the title and authors. Since the parent item row in the items list already displays that metadata, Zotero doesn't show the filename directly in the items list. Instead, it uses simpler attachment titles such as “PDF” or “Ebook” for the first file of a given type or includes additional information about the source of the file (e.g., “ScienceDirect Full Text PDF” for a file saved from ScienceDirect, or “Accepted Version” or “Submitted Version” for open-access files). These separate titles avoid cluttering the items list with duplicate metadata and prevent parent items from being unnecessarily expanded when searching for titles or creators.
Subsequent files added to an item from the filesystem will still get titles named after the filename (without the file extension), since those are likely to be supplementary files and the filename may be informative.
You can view and change the title and filename by clicking on the attachment and looking in the item pane.
Zotero 7 makes a couple changes to how attachment titles are handled:
People who were unnecessarily running Rename File from Parent Metadata on every attachment or who were using the ZotFile plugin (which also set the title to the filename) might be used to seeing filenames in the items list, but we'd encourage people to give the new behavior a try.
If you'd like to convert existing attachments to use “PDF” titles for consistency, you can select all items in the items list, go to Tools → Developer → Run JavaScript, and run this code:
var items = ZoteroPane.getSelectedItems(); for (let item of items) { if (!item.isRegularItem()) continue; let attachment = await item.getBestAttachment(); if (!attachment) continue; let title = attachment.getField('title'); if (title.endsWith('.pdf')) { attachment.setField('title', 'PDF'); await attachment.saveTx(); } }
This will go through the primary attachment of every selected item and convert the title of any that ends in “.pdf” to just “PDF”.
You should test with a smaller number of selected items first to make sure it's doing what you expect.