pendingUpload
fun pendingUpload(id: Long, bucketId: String, path: String, createdAt: Instant, sizeBytes: Long, contentType: String? = null, upsert: Boolean = false): PendingUpload(source)
An upload waiting in the mutation queue, as OfflineStorage.pendingUploads lists one.
Parameters
id
its id in the queue.
bucketId
the bucket the file goes to.
path
the object path within the bucket.
createdAt
when it was queued.
sizeBytes
the file's size.
contentType
the content type it is sent with, or null for none.
upsert
whether it overwrites an object already at the path.