AFileUploadable

public protocol AFileUploadable: _AUploadable

Represents a FileUploadable for Alamofire.

Create custom FileUploadable

protocol HTTPBinUploadService: AFileUploadable {

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

}
  • url

    The url.

    Declaration

    Swift

    var url: URL
  • request() Extension method

    Creates a UploadRequest to retrieve the contents of a URL based on the specified Requestable

    If startRequestsImmediately is true, the request will have resume() called before being returned.

    Declaration

    Swift

    public func request() -> UploadRequest

    Return Value

    The created UploadRequest.