0

I want to upload files to S3 bucket and download files from S3 bucket using python api connected to html pages

1 Answers1

1

There is a library for this 'boto3', that upload files in S3. For quick setup of boto3 follow:

boto3 quickstart

To upload a file :

import boto3
s3 = boto3.resource('s3')
s3.meta.client.upload_file('filename', 'bucketname', 'desired filename in s3')
Vidya Sagar
  • 1,496
  • 14
  • 23