Verify a large S3 transfer safely

Use multipart upload for a large object, respect part and credential limits, complete or abort the upload, then verify stored size and ETag.

Last reviewed

Large S3 objects should use multipart upload. Dosya’s tested rclone configuration switches at 64Mi; the gateway accepts part numbers 1 through 10,000 and limits each part to 5 GiB.

Four-step workflow map for Verify a large S3 transfer safely: Set multipart cutoff to 64Mi in the rclone profile, force the tested multipart path. Keep part numbers within 1–10,000, keep each part at or below 5 GiB. Complete only after every part ETag exists, otherwise abort the upload. HEAD the completed object and compare length, require source byte count and ETag.
This map follows verify a large s3 transfer safely from “Set multipart cutoff to 64Mi in the rclone profile, force the tested multipart path.” through “Keep part numbers within 1–10,000, keep each part at or below 5 GiB.” and “Complete only after every part ETag exists, otherwise abort the upload.”, ending with “HEAD the completed object and compare length, require source byte count and ETag.”. Open full-size screenshot.

Before you start

Record source byte size, destination bucket and key, and the client’s multipart settings. Keep enough storage available until completion. Credential and role file-size limits are evaluated when the gateway can see the complete multipart total.

Parts up to 50 MiB are buffered and retried at the storage write; larger parts stream directly and cannot replay their consumed body inside the same request. The client must retry a failed part number. An unfinished multipart upload should be explicitly aborted so stored parts and its concurrency slot are released.

Steps

  1. Set the client’s multipart threshold below its single-request transport ceiling; for rclone use the released upload_cutoff = 64Mi value.
  2. Start the upload to the exact workspace bucket and anchored-relative key, then record the returned upload ID without exposing credentials.
  3. Monitor successful part responses and their ETags; keep part numbers within 1–10,000 and each declared size at or below 5 GiB.
  4. On a failed part, retry that same number; if the transfer is abandoned, send AbortMultipartUpload rather than leaving it incomplete.
  5. Complete the upload and require a successful CompleteMultipartUpload response; completion rechecks scope, role, quota, backup lock, and total-size limits.
  6. Use HEAD to compare the stored Content-Length with the source bytes, record the multipart ETag, and download or sample-check content when stronger verification is required.
Reference for “Verify a large S3 transfer safely”: Dosya S3-compatible access overview page.
Reference for “Verify a large S3 transfer safely”: Dosya S3-compatible access overview page. Open full-size screenshot.

Expected result

One complete Dosya file appears at the requested key with the source byte count. The multipart ETag is an assembly receipt in the expected multi-part form, not a whole-file MD5 checksum.

If completion returns QuotaExceeded, EntityTooLarge, a lock refusal, or NoSuchUpload, do not assume the file landed. Resolve the gate, abort any still-live upload, and begin a clean multipart session. The current multipart completion path enforces credential and role file-size limits and quota; it does not apply the workspace max_file_size_gb setting.

Was this helpful?

Loading helpfulness results…

Voting saves a necessary ballot cookie for up to 180 days so you can change your answer.

Questions and replies

Ask about the steps in this guide. Questions are reviewed before publication.

Keep account details, credentials and private files out of public questions. Use private support for those.

Loading questions…

    Sign in to your Dosya account to ask a question.

    Check the outcome before you retry

    Use these shared checks when a task needs a second look.