media package
Submodules
media.s3_utils module
Module to interact with s3 storage
- media.s3_utils.upload_file(file_object, bucket, object_name)
Upload a file to an S3 bucket
- Parameters
file_object (-) – File to upload
bucket (-) – Bucket to upload to
object_name (-) – S3 object name. If not specified then file_name is used
- Returns
True if file was uploaded, else False