IPWorks Cloud 2020 iOS Edition

Questions / Feedback?

contentType (property)

The content type to send for a file.

Syntax

@property (nonatomic,readwrite,assign,getter=contentType,setter=setContentType:) NSString* contentType;
- (NSString*)contentType;
- (void)setContentType:(NSString*)newContentType;
public var contentType: String {
  get {...}
set {...} }

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).

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