Documentation Index
Fetch the complete documentation index at: https://docs.simplehost.dev/llms.txt
Use this file to discover all available pages before exploring further.
Upload a File
Upload a file’s raw bytes to the presigned URL returned by the Create or Update endpoints.Headers
| Header | Required | Description |
|---|---|---|
Content-Type | Yes | Must match the content type from the upload object’s headers |
Request Body
The raw file bytes. Do not wrap in JSON — send the file content directly.Example
Response (200)
Empty body on success.Errors
| Status | Reason |
|---|---|
| 400 | Upload URL has expired (1 hour TTL) |
| 400 | No request body provided |
| 500 | Upload to storage failed |
Important Notes
Upload URLs expire after 1 hour. If they expire, you’ll need to create a new version by calling the publish endpoint again.
- Upload all files listed in the
uploadsarray before calling Finalize - Files in the
skippedarray (hash matches) do not need to be uploaded - Upload order doesn’t matter — you can upload files in parallel
- The
--data-binaryflag is important when using curl — it preserves the raw bytes without any processing