server icon indicating copy to clipboard operation
server copied to clipboard

S3 Integration for Data Insertion

Open esteininger opened this issue 10 months ago • 0 comments

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.

esteininger avatar Apr 10 '24 20:04 esteininger