File

data class File(val contents: ByteReadChannel, val filename: String, val contentType: String)

A file to be uploaded to a Mastodon API.

Constructors

Link copied to clipboard
constructor(contents: ByteReadChannel, filename: String, contentType: String)

Properties

Link copied to clipboard
val contents: ByteReadChannel

Raw file contents.

Link copied to clipboard

MIME content type of the file.

Link copied to clipboard

Name of the file.