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
| Limit | Value |
|---|---|
| Recommended threshold | 100 MB+ |
| Maximum single upload | 5 GB |
| Maximum object size | 5 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 uploadUploadPart: upload a part (5 MB minimum, except the last part)CompleteMultipartUpload: finalise and create the objectAbortMultipartUpload: cancel and clean up partsListParts: list uploaded partsListMultipartUploads: 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
Uploadutility 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 64MBPart size recommendations
| File size | Recommended part size | Approximate parts |
|---|---|---|
| 100 MB – 1 GB | 16 MB – 32 MB | 6–32 parts |
| 1 GB – 10 GB | 64 MB – 128 MB | 16–80 parts |
| 10 GB – 100 GB | 128 MB – 256 MB | 80–400 parts |
| 100 GB+ | 256 MB – 512 MB | Varies |
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:
# 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_IDSomething unclear or out of date? Tell us, or read this page as Markdown.