PipedreamHQ/pipedream

[ACTION] Simplify Notion upload image affordance

Open

#20.537 geöffnet am 7. Apr. 2026

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (5.305 Forks)batch import
actionenhancementgood first issuehelp wantedtriaged

Repository-Metriken

Stars
 (7.438 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 9T 7h) (131 gemergte PRs in 30 T)

Beschreibung

It seems like the add block action is limited in its scope and only supports adding a small subsection of content. Ex. it only supports adding external image urls.

https://github.com/PipedreamHQ/pipedream/blob/master/components/notion/actions/append-block/append-block.mjs

https://www.notion.com/help/images-files-and-media#media-block-types https://developers.notion.com/reference/patch-block-children

We need this append-block action to support uploading base64 encoded data urls. i.e. Append block children with type: "file"

In the meantime, we can work around this with this series of actions:

  • create file upload (with the encoded data uri to upload)
  • send file upload
  • append block to parent (with a fake image url to get a block id, since this block doesn't let us specify any payload)
  • update child block (with {"type": "image","image": {"caption": [],"file_upload": {"id": "{{ @sendFile.id }}"}}}

Is there a specific app this action is for? Notion

Please provide a link to the relevant API docs for the specific service / operation. https://developers.notion.com/reference/patch-block-children

Contributor Guide