Skip to content
Docs

Multipart uploads

Upload large files in parts for reliability and resumability. Required for files over 5 GB, recommended for files over 100 MB.

When to use multipart uploads

LimitValue
Recommended threshold100 MB+
Maximum single upload5 GB
Maximum object size5 TB

Benefits

  • Resumable: if a part fails, only retry that part instead of the entire file.
  • Parallel uploads: upload multiple parts simultaneously for faster throughput.
  • Integrity: each part has its own ETag for verification.

Supported operations

  • CreateMultipartUpload: start a new multipart upload
  • UploadPart: upload a part (5 MB minimum, except the last part)
  • CompleteMultipartUpload: finalise and create the object
  • AbortMultipartUpload: cancel and clean up parts
  • ListParts: list uploaded parts
  • ListMultipartUploads: list in-progress uploads

Uploading a large file

Each of these tools handles multipart uploads automatically:

  • AWS CLI: uses multipart for large files without extra configuration.
  • JavaScript: use the Upload utility from @aws-sdk/lib-storage.
  • Python: boto3 handles multipart automatically with upload_file.
# AWS CLI automatically uses multipart for large files
aws --profile edge --endpoint-url https://storage.edge.network \
    s3 cp large-video.mp4 s3://my-bucket/videos/

# Configure part size (default is 8MB)
aws configure set s3.multipart_chunksize 64MB

Part size recommendations

File sizeRecommended part sizeApproximate parts
100 MB – 1 GB16 MB – 32 MB6–32 parts
1 GB – 10 GB64 MB – 128 MB16–80 parts
10 GB – 100 GB128 MB – 256 MB80–400 parts
100 GB+256 MB – 512 MBVaries

Note

The minimum part size is 5 MB (except the last part) and the maximum is 5 GB. An upload can have at most 10,000 parts.

Cleaning up incomplete uploads

Incomplete multipart uploads consume storage. Clean them up with:

Terminal
# List incomplete uploads
aws --profile edge --endpoint-url https://storage.edge.network \
    s3api list-multipart-uploads --bucket my-bucket

# Abort a specific upload
aws --profile edge --endpoint-url https://storage.edge.network \
    s3api abort-multipart-upload \
    --bucket my-bucket \
    --key videos/large-video.mp4 \
    --upload-id YOUR_UPLOAD_ID

Something unclear or out of date? Tell us, or read this page as Markdown.