Constructors

Link copied to clipboard
constructor()

Properties

Functions

Link copied to clipboard
Link copied to clipboard
fun createFile(filePath: String, rewriteExists: Boolean = false, expiresAfter: Long? = defaultExpiresAfterSeconds, block: (KoryFile) -> Unit)

Creates a new file and adds it to the upload list.

Link copied to clipboard
fun file(file: KoryFile, expiresAfter: Long? = defaultExpiresAfterSeconds)
Link copied to clipboard
fun fileFromPath(path: String, expiresAfter: Long? = defaultExpiresAfterSeconds)

Loads a file from the given path and adds it to the upload list.

Link copied to clipboard

Adds a pre-built request to the upload list.

Adds a request built via the nested request DSL.

Link copied to clipboard
fun requests(vararg requests: UploadFileRequest)

Adds multiple pre-built requests to the upload list.