Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(storage): Added cid property to storage files #502

Merged
merged 1 commit into from Sep 21, 2023
Merged

Conversation

andris9
Copy link
Member

@andris9 andris9 commented Sep 21, 2023

When creating storage files, you can use cid property

{
  "filename": "image123.png",
  "contentType": "image/png",
  "encoding": "base64",
  "cid": "<unique-value@example>",
  "content":...
  }

This is then included in the generated attachment object and can be referenced from the HTML

<img src="cid:unique-value@example">

@andris9 andris9 merged commit 80797ee into master Sep 21, 2023
7 checks passed
@andris9 andris9 deleted the file-storage-cid branch September 21, 2023 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant