jamalex / jamalex/notion-py

Upload a file in a "file" type column in a table.

Open
#231 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
4.4k
Forks
470
PR merge metrics
No merged PRs in 30d

Description

I enjoy the great features of this package.

To upload a file, I can use the FileBlock class and the upload_file method. When the FileBlock is a child of a page, the uploaded file is shown as a block on a page. I can attach a FileBlock as a child of a row of a table, and then the uploaded file is shown as an icon on the title column.

When a column is set as a "file" type, I can upload a file to the column from web. But, can I do this from this API?

I uploaded a file directly following the code of the upload_file method, and I added the url to the file-type column. I found that the link appeared but did not work; a ValidationError returned as a json file with a message "User does not have access."

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the FileBlock class and the upload_file method, then reproduce the request described for a file-type table column. Compare the resulting ValidationError with the existing page and table upload behavior. Done means establishing whether this API supports column uploads and documenting or implementing a defined path if the project can support it.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.