NotionX / NotionX/react-notion-x

Notion-client help: How do I get the full image url of the image from the Files & Media property?

Open
#414 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
5.4k
Forks
645
PR merge metrics
No merged PRs in 30d

Description

Description

I am frustrated that I only get the file name of the file from the properties of type File & Media in the post object.

When I set a new property called thumbnail of type Files & Media and I upload a new image file to that property, I would like to get the image url of the image file in my posts object in getAllPosts.

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the getAllPosts entry point and how Files & Media properties are represented in the post object. Check whether the Notion response includes an image URL or only a file name, then verify that the completed behavior exposes the uploaded image URL for the thumbnail property.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.