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

Adds the ability to upload local files and associate them with an attachment field. #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

alex-berlin-tv
Copy link
Contributor

The new upload_file method allows a local file to be uploaded to NocoDB and assigned to a field with the attachment type. The upload is done in two steps: First, the file is transferred to the NocoDB server using the upload endpoint (https://apis.nocodb.com/#tag/Storage/operation/storage-upload) of the Meta-Api. Then, with the help of table_row_update, the specified field is linked to the uploaded file.

This omits the Pyright warning when an APIToken/JWAuthToken is used in the
creation of a new NocoDBRequests instance.
…achment field.

The new upload_file method allows a local file to be uploaded to NocoDB and assigned
to a field with the attachment type. The upload is done in two steps: First, the file
is transferred to the NocoDB server using the upload endpoint
(https://apis.nocodb.com/#tag/Storage/operation/storage-upload) of the Meta-Api. Then,
with the help of table_row_update, the specified field is linked to the uploaded file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants