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.

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
- Set the client’s multipart threshold below its single-request transport ceiling; for rclone use the released
upload_cutoff = 64Mivalue. - Start the upload to the exact workspace bucket and anchored-relative key, then record the returned upload ID without exposing credentials.
- Monitor successful part responses and their ETags; keep part numbers within 1–10,000 and each declared size at or below 5 GiB.
- On a failed part, retry that same number; if the transfer is abandoned, send AbortMultipartUpload rather than leaving it incomplete.
- Complete the upload and require a successful CompleteMultipartUpload response; completion rechecks scope, role, quota, backup lock, and total-size limits.
- Use
HEADto compare the storedContent-Lengthwith the source bytes, record the multipart ETag, and download or sample-check content when stronger verification is required.

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.
Related guides
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.