Skip to main content

Endpoint

POST /upload/createfolder
Auth: API Key required
Content-Type: multipart/form-data

Form fields

folder
string
required
Path of the folder to create. Nested paths are supported.photos · uploads/2024/january · products/thumbnails

Response

201 — Folder created
{
  "success": true,
  "folder": "uploads/2024"
}
400 — Invalid folder path 409 — Folder already exists
{
  "success": false,
  "folder": "uploads/2024",
  "error": "Folder already exists"
}

Example

curl -X POST http://localhost:3000/upload/createfolder \
  -H "Authorization: Bearer <api_key>" \
  -F "folder=products/2024"

Upload Files

Upload files into a folder.

List Storage

Browse the folder tree.