How do I download a file larger than 1 GB?
Files over 1 GB download chunk by chunk:
- Get the object (
GET /v1/buckets/{bucket_id}/objects/{object_id}) to readchunk_count. - Download each chunk:
GET /v1/buckets/{bucket_id}/objects/{object_id}/chunks/{index}. - Check each against its
X-Content-SHA256header. - Concatenate chunks
0tochunk_count − 1in order.
for i in $(seq 0 $((COUNT-1))); do
curl -s "$CB/v1/buckets/$B/objects/$O/chunks/$i" -H "Authorization: Bearer $CLATTER_API_KEY" \
-H "X-Clatter-Account: $CLATTER_ACCOUNT_ID" >> big.bin
done
Chunk downloads don't count toward your key's per-minute limit, and can run in parallel.
Learn more#
Related articles
Still need help?
Tried the steps above and still stuck? Email us. We usually reply within the first hour, and always within 24 hours. A full support team is with you.
Infrastructure questions, or permanent deletion of your data
infrastructure@clatterlabs.xyzFor deleting your whole account or the data of one service.