StorageOptions
@objc(FSStorageOptions)
public class StorageOptions : NSObject
Represents a set of storage options.
-
An
StorageLocationvalue. Valid options are.s3,.dropbox,.rackspace,.azure,.gcs.Declaration
Swift
@objc public let location: StorageLocation -
A region name, e.g. “us-east-1”.
Declaration
Swift
@objc public var region: String? -
The bucket or container in the specified file store where the file should end up.
Declaration
Swift
@objc public var container: 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.Declaration
Swift
@objc public var path: String? -
The desired filename.
Declaration
Swift
@objc public var filename: String? -
The file’s MIME type.
Declaration
Swift
@objc public var mimeType: String? -
An
StorageAccessvalue. Valid options are.publicor.private.Declaration
Swift
public var access: StorageAccess? -
An array of workflow IDs to trigger for each upload.
Declaration
Swift
@objc public var workflows: [String]?
-
Convenience initializer (for Objective-C).
Declaration
Swift
@objc public convenience init(location: StorageLocation) -
Convenience initializer (for Objective-C).
Declaration
Swift
@objc public convenience init(location: StorageLocation, access: StorageAccess) -
Default initializer.
Declaration
Swift
@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)
-
A default set of storage options.
Declaration
Swift
@objc static var defaults: StorageOptions
View on GitHub
StorageOptions Class Reference