`Zotero.Item.attachmentFilename` should only return filename?

  • I don't know what this is supposed to be. Is this a development question? If so, you should post to zotero-dev and explain that.
  • @Haizs: But yes, this is arguably a bug. Here's what the function's comment says:
    This will return the filename for all file attachments, but the filename can only be set for stored file attachments. Linked file attachments should be set using .attachmentPath.
    It's a little weird that this works at all for linked-file attachments, but if it's going to, it should probably strip the relative path. I'll fix this. Thanks.

    (No need to post this to zotero-dev.)
  • This is fixed in the latest Zotero beta.
Sign In or Register to comment.