/home/instapod, /var/www, or /tmp.
List Files
| Query Param | Type | Default | Description |
|---|---|---|---|
path | string | Pod’s app root | Directory to list |
200 OK
files array if the directory doesn’t exist.
Read a File
| Query Param | Type | Required | Description |
|---|---|---|---|
path | string | Yes | Absolute file path |
200 OK
Write a File
200 OK
Upload a File
multipart/form-data
| Field | Type | Required | Description |
|---|---|---|---|
file | File | Yes | File to upload (max 32 MB) |
path | string | No | Target directory (default: app root) |
200 OK
Download a File
Content-Disposition: attachment.
Delete a File
200 OK
Rename / Move
200 OK
Copy
200 OK
Create Folder
200 OK
mkdir -p).
Path Validation
All paths must be:- Absolute (start with
/) - Within allowed directories:
/home/instapod,/var/www, or/tmp - Free of traversal (no
..segments)
400 Bad Request.