def AWS_UPLOAD(self):
"""
TODO: Let's make this workflow simpler, we can get a duration
from the hotstore url, check and delete if needed
For now, old style workflow with checks and deletes at end
"""
if not self.video_query.inst_class.s3_proc:
return False
if self.video_proto.filesize < self.auth_dict['multi_upload_barrier']:
"""
Upload single part
"""
if self._BOTO_SINGLEPART() is False:
return False
else:
"""
Upload multipart
"""
if self._BOTO_MULTIPART() is False:
return False
self.endpoint_url = '/'.join((
'https://s3.amazonaws.com',
self.auth_dict['edx_s3_endpoint_bucket'],
self.encoded_file
))
return True
评论列表
文章目录