Class
StorageOptions
@objc(FSStorageOptions)
public class StorageOptions: NSObject
Represents a set of storage options.
Relationships
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:mimeType: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
.
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
.
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.