Filestack Documentation

Class Storage​Options

@objc(FSStorageOptions)
public class StorageOptions: NSObject  

Represents a set of storage options.

StorageOptions StorageOptions NSObject NSObject StorageOptions->NSObject

Conforms To

NSObject

Initializers

init(location:​)

@objc public convenience init(location: StorageLocation)  

Convenience initializer (for Objective-C).

init(location:​access:​)

@objc public convenience init(location: StorageLocation, access: StorageAccess)  

Convenience initializer (for Objective-C).

init(location:​region:​container:​path:​filename:​mime​Type:​access:​workflows:​)

@nonobjc public init(location: StorageLocation,
                         region: String? = nil,
                         container: String? = nil,
                         path: String? = nil,
                         filename: String? = nil,
                         mimeType: String? = nil,
                         access: StorageAccess? = nil,
                         workflows: [String]? = nil)  

Default initializer.

Properties

location

@objc public let location: StorageLocation

An StorageLocation value. Valid options are .s3, .dropbox, .rackspace, .azure, .gcs.

region

@objc public var region: String? 

A region name, e.g. "us-east-1".

container

@objc public var container: String? 

The bucket or container in the specified file store where the file should end up.

path

@objc public var path: String? 

For S3, this is the key where the file will be stored at. By default, Filestack stores the file at the root at a unique id, followed by an underscore, followed by the filename, for example: 3AB239102DB_myvideo.mp4.

filename

@objc public var filename: String? 

The desired filename.

mime​Type

@objc public var mimeType: String? 

The file's MIME type.

access

public var access: StorageAccess? 

An StorageAccess value. Valid options are .public or .private.

workflows

@objc public var workflows: [String]? 

An array of workflow IDs to trigger for each upload.

defaults

@objc static var defaults: StorageOptions  

A default set of storage options.

description

override public var description: String  

:nodoc:

Methods

as​Dictionary()

public func asDictionary() -> [String: Any]  

:nodoc: