BaseFileSelectionBuilder

Base DSL builder for selecting a file to upload.

Provides common file selection methods (file, fileFromPath, createFile) shared across all file-upload request builders.

Type Parameters

OT

The output request type produced by build.

See also

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

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

Creates a new file at the given path and sets it for upload.

Link copied to clipboard
fun file(file: KoryFile)

Sets the file to upload.

Link copied to clipboard
fun fileFromPath(path: String)

Loads the file from the given path and sets it for upload.