def process_upload(self, set_content_type=True):
metadata = self.get_upload_key_metadata()<EOL>if set_content_type:<EOL><INDENT>content_type = self.get_upload_content_type()<EOL>metadata.update({b'<STR_LIT:Content-Type>': b'<STR_LIT>'.format(content_type)})<EOL><DEDENT>upload_key = self.get_upload_key()<EOL>processed_key_name = self.get_processed_key_name()<EOL>processed_key = upload_key.copy(upload_key.bucket.name,<EOL>processed_key_name, metadata)<EOL>processed_key.set_acl(self.get_processed_acl())<EOL>upload_key.delete()<EOL>return processed_key<EOL>
Process the uploaded file.