Skip to content

Middleware Backend — File manager ​

Folder: src/routes/file-manager/
Mount: api/v1/nellalink/file-manager
Status: live.

Middleware Backend · winner · live

POST https://middleware-dev.bookdirect.live/api/v1/nellalink/file-manager/aws/upload-url

POST https://middleware-dev.bookdirect.live/api/v1/nellalink/file-manager/aws/download-url

json
{
  "files": [
    {
      "file_name": "cover.jpg",
      "file_type": "image/jpeg",
      "file_size": 240000,
      "visibility": "public"
    }
  ]
}

PUT bytes to the presigned URL (or proxy via Next /api/upload unless NEXT_PUBLIC_DIRECT_S3_UPLOAD=true). Then save URLs on the property (images / gallery_urls).

Frontend: Extranet photos, services/media.ts.

API-first. Middleware Backend wins over Core Backend when both exist.