Skip to main content
Kinetic Community

Linking to Attachments

It can be helpful to link to attachments on one service item from another, for example, images from an image store. This article explains how to do that.

Usage

The format for the link for an attachment is:

https://KINETIC_SERVER/SPACE_SLUG/submissions/SUBMISSION_ID/files/FIELD_NAME/FILE_INDEX/FILE_NAME

Where KINETIC_SERVER, SPACE_SLUG, SUBMISSION_ID, FIELD_NAME, FILE_INDEX, and FILE_NAME are replace with the appropriate values for the attachment in question. So for an image stored, for example, in a datastore, it could be:

<img src="https://kinops.io/8591875/submissions/0422cb91-70b5-11e7-b824-ffc9a0307dfe/files/Attachment/0/refkell_melrakki_badge2.jpg">

Note that the original permissions for the submission are applied. This could be problematic when, for example, you want to make an attachment accessible from one task to the next in a workflow. For this, it might be better to use the copy attachment handler to actually copy the attachment into the new item and make it read-only.