upload

public File upload(File file, UploadFileConfig config)

Uploads a file to the API.

Return

The uploaded file.

Parameters

file

The file to upload.

config

The configuration for the upload.


public File upload(Array<byte> bytes, UploadFileConfig config)

Uploads a file to the API.

Return

The uploaded file.

Parameters

bytes

The bytes of the file to upload.

config

The configuration for the upload.


public File upload(InputStream inputStream, long size, UploadFileConfig config)

Uploads a file to the API.

Return

The uploaded file.

Parameters

inputStream

The input stream of the file to upload.

size

The size of the file to upload.

config

The configuration for the upload.


public File upload(String filePath, UploadFileConfig config)

Uploads a file to the API.

Return

The uploaded file.

Parameters

filePath

The path of the file to upload.

config

The configuration for the upload.