Attachments

Does anyone know a way around uploading and storing multiple copies of the same attachment file?

Let's say we sent Annual Report to 1000 constituents and want to attach the document to the action on the constituent records. There is a great post describing how to create physical attachments:

So I created a document, obtained file_id and link, uploaded the file.

There's a problem however, because POST Action Attachment does not allow adding the same file_id to multiple action records (even though the documentation does not say it has to be unique). So to add the same document to 1000 actions, i would have to upload 1000 identical copies of the same document.

In the past I tried adding the attachment on the first record, then obtain a link to it using GET Action Attachment List and use that link on the remaining 999 actions, but then I realized that the link has an expiration date in the signature and after that, when you click on the attachment in NXT, you get an error message:
Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. Signed expiry time must be after signed start time.

Would it be possible to allow adding the same attachment (file_id) to multiple records? I don't quite understand the limitation, because I think, once uploaded, the content of the attachment can't be updated anyway.

Categories