Part

annotation class Part(val value: String = "", val encoding: String = "binary")

Annotate a single part of a multipart request.

If the type is PartData the value will be used directly with its content type.

@POST("upload")
@Multipart
suspend fun uploadFile(@Part("description") description: String, @Part("extra") data: List<PartData>): String

Properties

Link copied to clipboard

The Content-Transfer-Encoding of this part.

Link copied to clipboard

The name of the part