ContentType Property
The content type to send for a file.
Syntax
getContentType(): string; setContentType(contentType: string): void;
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 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).
This property is not available at design time.