Class
UploadOptions
@objc(FSUploadOptions)
public class UploadOptions: NSObject
Represents a set of options for uploading items to a given storage location.
Relationships
Conforms To
NSObject
Initializers
init(preferIntelligentIngestion:startImmediately:deleteTemporaryFilesAfterUpload:storeOptions:uploadTags:partUploadConcurrency:chunkUploadConcurrency:)
@objc public init(preferIntelligentIngestion: Bool,
startImmediately: Bool,
deleteTemporaryFilesAfterUpload: Bool,
storeOptions: StorageOptions = .defaults,
uploadTags: [String: String] = [:],
partUploadConcurrency: Int = UploadOptions.defaultPartUploadConcurrency,
chunkUploadConcurrency: Int = UploadOptions.defaultChunkUploadConcurrency)
Default initializer.
Properties
defaultPartUploadConcurrency
@objc public static var defaultPartUploadConcurrency: Int = 5
Default part upload concurrency
defaultChunkUploadConcurrency
@objc public static var defaultChunkUploadConcurrency: Int = 8
Default chunk upload concurrency per part
preferIntelligentIngestion
@objc public var preferIntelligentIngestion: Bool
Attempts to use Intelligent Ingestion when enabled.
startImmediately
@objc public var startImmediately: Bool
Whether the upload should start immediately.
deleteTemporaryFilesAfterUpload
@objc public var deleteTemporaryFilesAfterUpload: Bool
Whether uploaded files located in the user's temporary directory should be deleted after being uploaded.
storeOptions
@objc public var storeOptions: StorageOptions
An object containing the store options (e.g. location, region, container, access, etc.)
uploadTags
@objc public var uploadTags: [String: String]
A dictionary containing any custom data (tags) that should be associated to this upload. For more information, please check Upload tags.
partUploadConcurrency
@objc public var partUploadConcurrency: Int
How many parts should be uploaded concurrently
chunkUploadConcurrency
@objc public var chunkUploadConcurrency: Int
How many chunks should be uploaded concurrently per part