This API call:
cards/IDGOESHERE?fields=all&actions=all&attachments=true&attachment_fields=all&members=true&member_fields=all&memberVoted_fields=all&checklists=all&checklist_fields=all&board=true&board_fields=all&list=true&pluginData=true&stickers=true&sticker_fields=all
used to return attachments that didn’t include a fileName element for link attachments.
Sometime in the past 12 hours it started returning fileName even for link attachments, for example a board attachment now returns:
{"id":"IDGOESHERE","bytes":null,"date":"2023-07-02T21:47:54.870Z","edgeColor":null,"idMember":"MEMBERID","isUpload":false,"mimeType":"","name":"https://trello.com/b/BOARDID","previews":[],"url":"https://trello.com/b/BOARDID","pos":16384,"fileName":"BOARDID"}
I was using the absence of fileName to determine if something was actually uploaded to the card or a link attachment, because previously isUpload was always false, however it appears that as part of this change (or a change made in the past … ) isUpload is also returning true for files uploaded to the card.
So it would seem I can change my code to correctly identify link attachments now by using isUpload, but it does also seem as though fileName should not be present for link attachments.