Exemple #1
0
 def execute(self):
     execution = self.emerge_execution
     upload_source = UploadSourceStream(
         self.stream_opener,
         stream_length=self.stream_length,
         stream_sha1=self.stream_sha1,
     )
     return execution.services.upload_manager.upload_part(
         execution.bucket_id,
         self.large_file_id,
         upload_source,
         self.part_number,
         self.large_file_upload_state,
         finished_parts=self.finished_parts,
     )
Exemple #2
0
 def execute(self):
     upload_source = UploadSourceStream(
         self.stream_opener,
         stream_length=self.stream_length,
         stream_sha1=self.stream_sha1,
     )
     execution = self.emerge_execution
     return execution.services.upload_manager.upload_file(
         execution.bucket_id,
         upload_source,
         execution.file_name,
         execution.content_type or execution.DEFAULT_CONTENT_TYPE,
         execution.file_info or {},
         execution.progress_listener,
     )