Data Types

Get Started

Bytescale simplifies file uploading, file processing, content optimization, and content delivery.

To upload files with cURL:

Option 1: Use a binary request body:

curl "{accountId}/uploads/binary" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: text/plain" `# change to match the file's MIME type` \
-d "Example Data" `# to upload a file: --data-binary @file.jpg`

Option 2: Use a multipart/form-data request body:

curl "{accountId}/uploads/form_data" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F file=@image.jpg # File must exist locally. Always include the '@'.

Option 3: Upload files from an existing URL:

curl "{accountId}/uploads/url" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d @- << EOF
"url": ""

Learn more about uploading files:

Learn more about downloading and processing files:

Was this section helpful? Yes No

You are using an outdated browser.

This website requires a modern web browser -- the latest versions of these browsers are supported: