# boto3 1.44.15 (Apache-2.0), harvested by tools/harvest_corpus.py
=== input
Upload a file-like object to this bucket.

    The file-like object must be in binary mode.

    This is a managed transfer which will perform a multipart upload in
    multiple threads if necessary.

    Usage::

        import boto3
        s3 = boto3.resource('s3')
        bucket = s3.Bucket('amzn-s3-demo-bucket')

        with open('filename', 'rb') as data:
            bucket.upload_fileobj(data, 'mykey')

    :type Fileobj: a file-like object
    :param Fileobj: A file-like object to upload. At a minimum, it must
        implement the `read` method, and must return bytes.

    :type Key: str
    :param Key: The name of the key to upload to.

    :type ExtraArgs: dict
    :param ExtraArgs: Extra arguments that may be passed to the
        client operation. For allowed upload arguments see
        :py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS`.

    :type Callback: function
    :param Callback: A method which takes a number of bytes transferred to
        be periodically called during the upload.

    :type Config: boto3.s3.transfer.TransferConfig
    :param Config: The transfer configuration to be used when performing the
        upload.
    
=== parse rest
short_description: 'Upload a file-like object to this bucket.'
long_description: |
  The file-like object must be in binary mode.
  
  This is a managed transfer which will perform a multipart upload in
  multiple threads if necessary.
  
  Usage::
  
      import boto3
      s3 = boto3.resource('s3')
      bucket = s3.Bucket('amzn-s3-demo-bucket')
  
      with open('filename', 'rb') as data:
          bucket.upload_fileobj(data, 'mykey')
blank_after_short_description: True
blank_after_long_description: True
style: rest
- DocstringParam
  description: |
    A file-like object to upload. At a minimum, it must
    implement the `read` method, and must return bytes.
  kind: param
  key: 'param'
  arg_name: 'Fileobj'
  type_name: 'a file-like object'
  is_optional: False
- DocstringParam
  description: 'The name of the key to upload to.'
  kind: param
  key: 'param'
  arg_name: 'Key'
  type_name: 'str'
  is_optional: False
- DocstringParam
  description: |
    Extra arguments that may be passed to the
    client operation. For allowed upload arguments see
    :py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS`.
  kind: param
  key: 'param'
  arg_name: 'ExtraArgs'
  type_name: 'dict'
  is_optional: False
- DocstringParam
  description: |
    A method which takes a number of bytes transferred to
    be periodically called during the upload.
  kind: param
  key: 'param'
  arg_name: 'Callback'
  type_name: 'function'
  is_optional: False
- DocstringParam
  description: |
    The transfer configuration to be used when performing the
    upload.
  kind: param
  key: 'param'
  arg_name: 'Config'
  type_name: 'boto3.s3.transfer.TransferConfig'
  is_optional: False
=== detect
rest
=== compose rest
Upload a file-like object to this bucket.

The file-like object must be in binary mode.

This is a managed transfer which will perform a multipart upload in
multiple threads if necessary.

Usage::

    import boto3
    s3 = boto3.resource('s3')
    bucket = s3.Bucket('amzn-s3-demo-bucket')

    with open('filename', 'rb') as data:
        bucket.upload_fileobj(data, 'mykey')

:param Fileobj: A file-like object to upload. At a minimum, it must
    implement the `read` method, and must return bytes.
:type Fileobj: a file-like object
:param str Key: The name of the key to upload to.
:param dict ExtraArgs: Extra arguments that may be passed to the
    client operation. For allowed upload arguments see
    :py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS`.
:param function Callback: A method which takes a number of bytes transferred to
    be periodically called during the upload.
:param boto3.s3.transfer.TransferConfig Config: The transfer configuration to be used when performing the
    upload.
