Attachement url for html_widget

Dears,

I’m trying to include in html_widget an .png logos stored in column A
I have retrived the “hard” url with the browser help :

<img src="https://doc-worker-172-31-21-195.getgrist.com/dw/doc-worker-172-31-21-195/v/f937d4d7e/o/docs/attachment?clientId=XXXXXXXX&docFD=0&ident=5b711db22bcdefc55a5ec30aa0a7136c586b16f3.png&XXXXXX" alt="" width="240" height="90" />

Is there a way to do this without putting the hardlink so that change in column A will follow in the html_widget ?

Hi @Sylvain_Page - attachments are currently hard to access safely from custom widgets. There’s an update coming very soon to resolve this. Watch this space!

If your document happens to be publicly viewable, then you can use image source urls like https://docs.getgrist.com/api/docs/DOCID/attachments/NNNN/download where NNNN are the ids stored in the attachment column (in your table they’d be available as $A.id). But most docs aren’t publicly viewable, and access to the attachment columns from a custom widget will be denied - hence the update we are working on.

Hi @paul-grist , Thanks for your answer and explanation.
Happy to see you have plans for this issue.