fileUpload

@NotNull
open fun fileUpload(@NotNull name: @NotNull String, data: @NotNull Array<Byte>, @NotNull callback: @NotNull UploadCallback): @NotNull TransferController
@NotNull
open fun fileUpload(@NotNull name: @NotNull String, @NotNull data: @NotNull InputStream, totalBytes: Int, @NotNull callback: @NotNull UploadCallback): @NotNull TransferController

Start image upload.

Multiple calls will queue multiple uploads, executed sequentially. This includes file downloads executed from fileDownload.

The upload may be controlled using the TransferController returned by this method.

Return

The object used to control this upload.

Parameters

data

The file data to upload.

callback

Receives callbacks from the upload.

See also