VmodalFilePart

class VmodalFilePart(val fieldName: String, val fileName: String, val contentLength: Long, val contentType: String = "application/octet-stream", opener: () -> InputStream)

Reopenable multipart file part used by low-level collection helpers.

Constructors

Link copied to clipboard
constructor(fieldName: String, fileName: String, contentLength: Long, contentType: String = "application/octet-stream", opener: () -> InputStream)
constructor(fieldName: String, fileName: String, bytes: ByteArray, contentType: String = "application/octet-stream")

Creates an in-memory part. Prefer the streaming constructor for large data.

Properties

Link copied to clipboard

exact byte length

Link copied to clipboard

media type sent for the part

Link copied to clipboard

multipart form field name

Link copied to clipboard

transmitted file name

Functions

Link copied to clipboard

Opens a new stream. The caller owns and closes the returned stream.