server
server copied to clipboard
S3 Integration for Data Insertion
update
Simplify the process of inserting data through S3 integration, facilitating smoother data flow and storage options.
proposed code:
import requests
url = "http://localhost:8000/storage/insert-one"
payload = {'key1': 'value1',
'key2': 'value2'}
files=[
('file',('210-OGL Notice To Vacate.pdf',open('doc.pdf','rb'),'application/pdf'))
]
headers = {
'Authorization': 'Bearer 1'
}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
users should specify their connection_id
collection and this inserts the file into s3 and stores the url in the collection.