upload

Attributes

filename

Functions

upload_file_s3(filename, bucket[, obj_name])

Upload a file to an S3 bucket

Module Contents

upload.upload_file_s3(filename, bucket, obj_name=None)[source]

Upload a file to an S3 bucket

Parameters:
  • filename – File to upload

  • bucket – Bucket to upload to

  • object_name – S3 object name. If not specified, filename is used

:return None if upload was successful, otherwise the associated error code

upload.filename[source]