JimLakis / PDM_Wildlife

0 stars 0 forks source link

S3 bucket image upload #6

Open bbelderbos opened 1 year ago

bbelderbos commented 1 year ago

From the old repo:

For later, but we can leverage this function (upload_to_s3()) to upload images to an S3 bucket and store the URL in the database (instead of the image blob): https://github.com/PyBites-Open-Source/pybites-tools/blob/main/pybites_tools/aws.py

Only requirement is to make an AWS account and generate the tokens that you see loaded from the environment in the script.


Update since: do you still want to handle physical images in your API? Hence why a scope check would be good now, please confirm by this issue: #1