MultipartUploadable

public protocol MultipartUploadable : Uploadable

Represents a MultipartUploadable for Alamofire.

Create custom MultipartUploadable

protocol HTTPBinUploadService: MultipartUploadable {

    typealias Response = Data

    var path: String? = "post"
    var multipartFormData: (MultipartFormData) -> Void = { multipartFormData in
        multipartFormData.append("français".data(using: .utf8)!, withName: "french")
        multipartFormData.append("日本語".data(using: .utf8)!, withName: "japanese")
    }

}
  • The multipart form data.

    Declaration

    Swift

    var multipartFormData: MultipartFormData { get }
  • encodingMemoryThreshold Default implementation

    The encoding memory threashold.

    Default Implementation

    SessionManager.multipartFormDataEncodingMemoryThreshold

    Declaration

    Swift

    var encodingMemoryThreshold: UInt64 { get }