IPWorks Cloud 2020 Kotlin Edition

Questions / Feedback?

ContentType Property

The content type to send for a file.

Syntax

public var contentType: String?

Default Value

""

Remarks

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

If this property is empty, the component 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).

This property is not available at design time.

Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks Cloud 2020 Kotlin Edition - Version 20.0 [Build 7941]