appendBytes

fun FormBuilder.appendBytes(partName: String, bytes: ByteArray, contentType: String, fileName: String)(source)

Appends raw ByteArray content to the multipart form.

Parameters

partName

Form field name.

bytes

Raw bytes to upload.

contentType

MIME type.

fileName

File name sent in the Content-Disposition header.