crt_9.py 443 B

12345678910111213
  1. def upload(self, fileobj, bucket, key, extra_args=None, subscribers=None):
  2. if extra_args is None:
  3. extra_args = {}
  4. if subscribers is None:
  5. subscribers = {}
  6. callargs = CallArgs(
  7. bucket=bucket,
  8. key=key,
  9. fileobj=fileobj,
  10. extra_args=extra_args,
  11. subscribers=subscribers,
  12. )
  13. return self._submit_transfer("put_object", callargs)