upload
suspend fun Files.upload(file: <Error class: unknown class>, config: UploadFileConfig? = null): File
Uploads a file to the API.
Return
The uploaded file.
Parameters
file
The file to upload.
config
Optional configuration for the upload.
suspend fun Files.upload(path: <Error class: unknown class>, config: UploadFileConfig? = null): File
Uploads a file at the specified path to the API.
Return
The uploaded file.
Parameters
path
The path of the file to upload.
config
Optional configuration for the upload.