Creates a new object in the currently selected bucket.
def create_object(object_name: str) -> None: ...
This method creates a new object named Object in the bucket currently selected by bucket. If there are any metadata items present in the Metadata* properties, they will included in the creation request.
Automatic Multipart Uploads
If more than SimpleUploadLimit bytes of data are provided, the class will automatically perform a multipart upload by splitting the data up into parts (sized according to the FragmentSize configuration setting) and uploading them individually. To accomplish this, the class automatically makes calls to start_multipart_upload, upload_part, and complete_multipart_upload internally; tracks upload state information using the ResumableUploadState configuration setting; and tracks how much data has been uploaded using the start_byte property. The on_fragment_complete event will fire after each part is uploaded.
If, during an automatic multipart upload, any individual request fails, the upload can be resumed be calling this method again with the same parameters, so long as ResumableUploadState and start_byte contain the same values as they did when the upload was interrupted.
Note: Automatic multipart uploads are not supported when service_provider is spGoogleStorage (2); Google Cloud Storage does not support multipart uploads.