videosphere
    Preparing search index...
    • Derives a safe resume byte offset from persisted upload progress when a session probe is inconclusive.

      Parameters

      • bytesConfirmed: number

        Last confirmed byte count from a platform_upload row; missing or invalid values yield 0.

      • totalBytes: number

        Total object size in bytes; stored offsets at or beyond this reset to 0.

      Returns number

      Next byte index to send when resuming the resumable upload.