Attachments
Attaching a File to an Item
meeco items:create -i .item-config.yaml -a .alice.yaml > .item2.yamlkind: FileAttachment
metadata:
item_id: e8670e6c-8a95-43ff-a8d1-08805f612250 # (target item id from .item2.yaml)
spec:
label: 'Secret test webm video'
file: './test.webm'meeco items:attach-file -c attachment-config.yaml -a .alice.yaml > .attach-response.yamlattachment:
id: fe9ef5ad-b29c-4b71-bb73-b14fd4b88dca
content_type: video/webm
filename: test.webm
...
slots:
- id: 67b2a8c2-4a4b-4a53-9b2f-5411cd63576b
attachment_id: fe9ef5ad-b29c-4b71-bb73-b14fd4b88dca
slot_type_name: attachment
item_id: e8670e6c-8a95-43ff-a8d1-08805f612250
label: My Secret File
encrypted_value: Aes256Gcm.z-T6OnEB6ssmkQK4RcvtYHjh2rE5PregqflhZoVXq6w=.QUAAAAAFaXYADAAAAAAhvEHoJqo845AsORoFYXQAEAAAAACahlEdh5rJcKfnl0DtTiaBAmFkAAUAAABub25lAAA=
...
item:
id: e8670e6c-8a95-43ff-a8d1-08805f612250
label: Item Label
slot_ids:
- 67b2a8c2-4a4b-4a53-9b2f-5411cd63576b
...Downloading the Attached File
Sharing and receiving the attachment
Using the file-storage-browser or file-storage-node Packages
Last updated