beginFileUpload

fun beginFileUpload(appId: Int, fileSize: Int, rawFileSize: Int, fileSha: ByteArray, timestamp: Date, filename: String, platformsToSync: Int = UInt.MAX_VALUE.toInt(), cellId: Int = client.cellID!!, canEncrypt: Boolean = true, isSharedFile: Boolean = false, deprecatedRealm: Int? = null, uploadBatchId: Long, parentScope: CoroutineScope = CoroutineScope(Dispatchers.IO)): CompletableFuture<FileUploadInfo>

Requests to upload a specific user file within a batch upload request

Return

The upload information needed to upload the file in blocks

Parameters

appId

The ID of the app whose user file this belongs to

fileSize

The size of the file in bytes

rawFileSize

The size of the raw file in bytes

fileSha

The hash of the file

timestamp

The timestamp of the file

uploadBatchId

The ID of the upload batch this file upload belongs to (see beginAppUploadBatch)