createOrContinueUpload
abstract suspend fun createOrContinueUpload(channel: suspend (offset: Long) -> ByteReadChannel, source: String, size: Long, path: String, options: UploadOptionBuilder.() -> Unit = {}): ResumableUpload(source)
Creates a new resumable upload or continues an existing one. If there is an url in the cache for the given Fingerprint, the upload will be continued.
Parameters
channel
A function that takes the offset of the upload and returns a ByteReadChannel that reads the data to upload from the given offset
size
The size of the data to upload
path
The path to upload the data to
options
The options for the upload
open suspend fun createOrContinueUpload(data: ByteArray, source: String, path: String, options: UploadOptionBuilder.() -> Unit = {}): ResumableUpload(source)
Creates a new resumable upload or continues an existing one. If there is an url in the cache for the given Fingerprint, the upload will be continued.
Parameters
data
The data to upload as a ByteArray
path
The path to upload the data to
options
The options for the upload