DefaultUpload

A default Upload that can upload from a wide variety of content

Types

Link copied to clipboard
class Builder

Properties

Link copied to clipboard
open override val contentLength: Long

Returns the number of bytes that will be written to sink in a call to .writeTo, or -1 if that count is unknown.

Link copied to clipboard
open override val contentType: String
Link copied to clipboard
open override val fileName: String?

The fileName to send to the server. Might be null

Functions

Link copied to clipboard
Link copied to clipboard
open override fun writeTo(sink: BufferedSink)

Writes the content of this request to sink.