Horje
flask Upload file to local s3 Code Example
flask Upload file to local s3
import boto3
session = boto3.session.Session()

s3 = session.client(
            service_name='s3',
            endpoint_url='http://localhost:4566',
        )
bucket_name = "mybucket"
s3.upload_fileobj(uploadedFile, bucket_name, file_name)




Python

Related
python generators with for Code Example python generators with for Code Example
new line in jupyter notebook markdown Code Example new line in jupyter notebook markdown Code Example
drop all unnamed columns pandas Code Example drop all unnamed columns pandas Code Example
python exit if statement Code Example python exit if statement Code Example
how to commenbt code in python Code Example how to commenbt code in python Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7