Clatter LabsHelp Center

How do I download a file larger than 1 GB?

How-toUpdated

Files over 1 GB download chunk by chunk:

  1. Get the object (GET /v1/buckets/{bucket_id}/objects/{object_id}) to read chunk_count.
  2. Download each chunk: GET /v1/buckets/{bucket_id}/objects/{object_id}/chunks/{index}.
  3. Check each against its X-Content-SHA256 header.
  4. Concatenate chunks 0 to chunk_count − 1 in 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.xyz
For deleting your whole account or the data of one service.