Filestack Documentation

Class Upload​Options

@objc(FSUploadOptions)
public class UploadOptions: NSObject  

Represents a set of options for uploading items to a given storage location.

UploadOptions UploadOptions NSObject NSObject UploadOptions->NSObject

Conforms To

NSObject

Initializers

init(prefer​Intelligent​Ingestion:​start​Immediately:​delete​Temporary​Files​After​Upload:​store​Options:​upload​Tags:​part​Upload​Concurrency:​chunk​Upload​Concurrency:​)

@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

default​Part​Upload​Concurrency

@objc public static var defaultPartUploadConcurrency: Int = 5

Default part upload concurrency

default​Chunk​Upload​Concurrency

@objc public static var defaultChunkUploadConcurrency: Int = 8

Default chunk upload concurrency per part

defaults

@objc public static var defaults: UploadOptions  

A default set of upload options.

prefer​Intelligent​Ingestion

@objc public var preferIntelligentIngestion: Bool

Attempts to use Intelligent Ingestion when enabled.

start​Immediately

@objc public var startImmediately: Bool

Whether the upload should start immediately.

delete​Temporary​Files​After​Upload

@objc public var deleteTemporaryFilesAfterUpload: Bool

Whether uploaded files located in the user's temporary directory should be deleted after being uploaded.

store​Options

@objc public var storeOptions: StorageOptions

An object containing the store options (e.g. location, region, container, access, etc.)

upload​Tags

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

part​Upload​Concurrency

@objc public var partUploadConcurrency: Int

How many parts should be uploaded concurrently

chunk​Upload​Concurrency

@objc public var chunkUploadConcurrency: Int

How many chunks should be uploaded concurrently per part

description

override public var description: String  

:nodoc: