flask upload file to local s3

Solutions on MaxInterview for flask upload file to local s3 by the best coders in the world

showing results for - "flask upload file to local s3"
Yannick
02 Nov 2019
1import boto3
2session = boto3.session.Session()
3
4s3 = session.client(
5            service_name='s3',
6            endpoint_url='http://localhost:4566',
7        )
8bucket_name = "mybucket"
9s3.upload_fileobj(uploadedFile, bucket_name, file_name)
10
similar questions
queries leading to this page
flask upload file to local s3