FileUploadable

public protocol FileUploadable : Uploadable

Represents a FileUploadable for Alamofire.

Create custom FileUploadable

protocol HTTPBinUploadService: FileUploadable {

    typealias Response = Data

    var path: String? = "post"
    let url: URL = FileManager.url(forResource: "rainbow", withExtension: "png")

}
  • url

    The url.

    Declaration

    Swift

    var url: URL { get }