rejectedUpload

fun rejectedUpload(id: Long, bucketId: String, path: String, createdAt: Instant, sizeBytes: Long, contentType: String? = null, upsert: Boolean = false, serverError: ServerError? = null, message: String, rejectedAt: Instant, isRetryable: Boolean = true): RejectedUpload(source)

A queued upload Storage refused for good, as OfflineStorage.rejectedUploads lists one.

Parameters

id

its id in the queue.

bucketId

the bucket the file was going to.

path

the object path within the bucket.

createdAt

when it was queued.

sizeBytes

the file's size.

contentType

the content type it was sent with, or null for none.

upsert

whether it overwrites an object already at the path.

serverError

what Storage answered, or null when the library refused it.

message

why it was refused.

rejectedAt

when it was refused.

isRetryable

whether it can be queued again.


fun rejectedUpload(id: Long, bucketId: String, path: String, createdAt: Instant, sizeBytes: Long, contentType: String? = null, upsert: Boolean = false, serverError: ServerError? = null, message: String, rejectedAt: Instant, isRetryable: Boolean = true, localPath: String?): RejectedUpload(source)

A queued upload Storage refused for good, with its bytes on the device at localPath, as OfflineStorage.rejectedUploads lists one whose file is still whole.

Parameters

id

its id in the queue.

bucketId

the bucket the file was going to.

path

the object path within the bucket.

createdAt

when it was queued.

sizeBytes

the file's size.

contentType

the content type it was sent with, or null for none.

upsert

whether it overwrites an object already at the path.

serverError

what Storage answered, or null when the library refused it.

message

why it was refused.

rejectedAt

when it was refused.

isRetryable

whether it can be queued again.

localPath

the file-system path of its bytes on the device, or null when they are gone.