Skip to main content

Upload file through API without downloading file locally

  • October 23, 2022
  • 2 replies
  • 586 views

How to send a file to https://api.monday.com/v2/file without having the file locally? I wish to send it as binary file through an API, instead of downloading it locally and then sending it to https://api.monday.com/v2/file.

2 replies

Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • October 24, 2022

Hello @guyonmonday!

As of today, there is no way of uploading a file without having that file locally.

Let us know if you have any other questions 🙂

Cheers,
Matias


  • Author
  • New Participant
  • October 24, 2022

As far as i understand to upload a file you need to rill in this parameter when useing python:

files=[
(‘image’,(‘file’,open(‘/path/to/file’,‘rb’),‘application/octet-stream’))
]

I wonder if there are other ways you can fill in this part:

open(‘/path/to/file’,‘rb’)

for example filling this part with the binary value of the file you wish to upload as you get it from another source?