Optional ReadonlyconcurrencyNumber of concurrent part uploads for large files.
Optional ReadonlycontentMIME type. Defaults to "b2/x-auto" (auto-detected by B2).
Optional ReadonlycustomB2 upload timestamp override in milliseconds since epoch.
Sets the file version uploadTimestamp; distinct from lastModifiedMillis metadata.
Requires B2 account enablement for Custom Upload Timestamp.
Optional ReadonlyfileCustom key-value metadata stored with the file.
Optional ReadonlyfileFile retention policy (requires file lock on the bucket).
Optional ReadonlylastLast-modified timestamp in milliseconds since epoch.
Optional ReadonlylegalLegal hold status for the file.
Optional ReadonlyonCallback invoked if best-effort cancellation fails, or if cancellation is
skipped because b2_finish_large_file may already have committed.
Optional ReadonlyonCallback invoked with upload progress events.
Optional ReadonlyonDiagnostic callback invoked when resume discovery rejects a candidate.
Optional ReadonlyonDiagnostic callback invoked when resume reuses an already-uploaded part.
Optional ReadonlyonCallback invoked before a fresh-URL upload retry.
Optional ReadonlypartPart size override for multipart uploads, in bytes.
Optional ReadonlyprogressMinimum milliseconds between byte-only progress callbacks. Defaults to the SDK's 100 ms progress interval; set to 0 for per-chunk callbacks. Part-completion progress callbacks are always emitted immediately.
Optional ReadonlyresumeEnable bounded same-name multipart resume discovery. Ignored on the small-file path.
Optional ReadonlyresumeOptional aggregate SDK-enforced timeout for resume discovery.
Optional ReadonlyresumeExplicit unfinished large-file ID to verify and resume. Only supported on the large-file path; small-file uploads throw.
Optional ReadonlyresumeMaximum b2_list_unfinished_large_files pages inspected before upload starts.
Optional ReadonlyresumeMaximum metadata-compatible candidates whose parts may be listed before upload starts.
Optional ReadonlyresumeMaximum b2_list_parts pages inspected per metadata-compatible candidate.
Optional ReadonlyretryRetry settings shared with the main transport retry configuration.
Optional ReadonlyretryWhether ambiguous failures after an upload POST should be retried, including response-body read failures and transport errors where B2 may have stored the payload before the success response was lost. Defaults to false. Set true only when duplicate versions or parts are acceptable.
Optional ReadonlyserverServer-side encryption settings.
Optional ReadonlysignalAbort signal for cancelling the upload.
ReadonlysourceData source to upload. Use BufferSource, BlobSource, FileSource, StreamSource, or toContentSource for async iterables and Node Readables.
Shared options for high-level file uploads.