UploadRequest_Uploadable - SwiftDocOrg/Alamofire GitHub Wiki

UploadRequest.Uploadable

Type describing the origin of the upload, whether Data, file, or stream.

public enum Uploadable

Inheritance

UploadableConvertible

Enumeration Cases

data

Upload from the provided Data value.

case data(:​ Data)

file

Upload from the provided file URL, as well as a Bool determining whether the source file should be automatically removed once uploaded.

case file(:​ URL, shouldRemove:​ Bool)

stream

Upload from the provided InputStream.

case stream(:​ InputStream)

Methods

createUploadable()

public func createUploadable() throws -> UploadRequest.Uploadable