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

Permitir que a imagem adicionada a página do Notion seja hospedada no Notion #1

Open
thomasdoconski opened this issue Jul 26, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@thomasdoconski
Copy link
Collaborator

O código atual usa a API do Notion para poder subir a imagem que teve upload na S3.
Se essa imagem ficar indisponível ou se ela for sobrescrita, a imagem que está no relatório gerado pelo código será alterada também, já que a API faz referência a imagem pelo link original.
Hoje, pela a API do Notion, não é possível fazer o upload da imagem, como pode ser visto na documentação do próprio Notion.

Externally hosted files vs. Files hosted by Notion
For files and URLs hosted outside of Notion, we support retrieving the link as well as updating it to a different link. We don't currently support uploading files to Notion through the API, however, for files already uploaded to Notion, we support retrieving the file URL. The table below details what's supported for Embed, Image, Video, Audio, and File blocks, as well as page icon and page cover image properties.
https://developers.notion.com/reference/file-object

A proposta é que se crie uma maneira automatizada, talvez pelo Selenium mesmo, que adicione a imagem capturada a nova página de relatório criada, de modo que ela fique hospedada no Notion e não corra risco de alterações.

@thomasdoconski thomasdoconski added the enhancement New feature or request label Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant