IPWorks Cloud 2020 Python Edition

Questions / Feedback?

content_type Property

The content type to send for a file.

Syntax

def get_content_type() -> str: ...
def set_content_type(value: str) -> None: ...

content_type = property(get_content_type, set_content_type)

Default Value

""

Remarks

This property can be set before calling upload_file, start_multipart_upload, or (if the SendMetadataOnCopy configuration setting is enabled) copy_file to have its value submitted as the file's Content-Type header value.

If this property is empty, the class will send b2/x-auto, which instructs the server to automatically determine the content type based on the file's extension (or set it to application/octet-stream if it cannot).

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 Python Edition - Version 20.0 [Build 8265]