Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions docs/api/client/files.md
Original file line number Diff line number Diff line change
Expand Up @@ -407,12 +407,17 @@ This approach ensures secure file uploads without exposing server credentials an

Use the signed URL from Step 1 to upload your file(s).

#### Query Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `directory` | string | No | Target directory (must match Step 1) |

#### Form Data Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `files` | file | Yes | File to upload (use `files` as field name) |
| `directory` | string | Yes | Target directory (must match Step 1) |

### Complete Example

Expand All @@ -428,9 +433,8 @@ signed_url=$(curl -s \\
| jq -r '.attributes.url')

# Step 2: Upload file to signed URL
curl -X POST "$signed_url" \\
-F "files=@/path/to/local/file.txt" \\
-F "directory=/"`,
curl -X POST "$signed_url?directory=%2F" \\
-F "files=@/path/to/local/file.txt"`,
javascript: `const axios = require('axios');
const FormData = require('form-data');
const fs = require('fs');
Expand Down Expand Up @@ -2149,4 +2153,4 @@ Returns empty response body with status code 204.

- Learn about [Database Management](./databases) for server databases
- Explore [Backup Management](./backups) for automated backups
- Check [Scheduled Tasks](./schedules) for automated file operations
- Check [Scheduled Tasks](./schedules) for automated file operations