upload_file
(Filename, Key, ExtraArgs=None, Callback=None, Config=None)¶Upload a file to an S3 object.
Usage:
import boto3
s3 = boto3.resource('s3')
s3.Bucket('mybucket').upload_file('/tmp/hello.txt', 'hello.txt')
Similar behavior as S3Transfer's upload_file() method, except that parameters are capitalized. Detailed examples can be found at S3Transfer's Usage.