Upload a file
Use the following code snippet to upload a bucket.
response = s3.Bucket('bucket1').upload_file('./README.md','README.md')
print(response)
This will upload ‘README.md’ to Ozone creates a key ‘README.md’ in volume ‘s3v’.
Use the following code snippet to upload a bucket.
response = s3.Bucket('bucket1').upload_file('./README.md','README.md')
print(response)
This will upload ‘README.md’ to Ozone creates a key ‘README.md’ in volume ‘s3v’.