Webtrend CDN Docs

Secure file delivery and upload documentation for humans, apps, and AI agents.

Upload API

Use multipart upload with a required file field.

Endpoint: POST /upload
Field: file
Max size: 10 MB
CORS: POST, OPTIONS

Resize

Resize delivered images using the DXL helper.

/dxl?src=path&w=300

cURL Example

curl -X POST https://cdn.webtrend.com.ng/upload \
  -F "file=@/path/to/image.png"

Success Response

{
  "success": true,
  "url": "https://cdn.webtrend.com.ng/files/example.png",
  "filename": "example.png",
  "mime": "image/png",
  "bytes": 12345
}

SDK Links

Allowed File Types

image/jpeg -> jpg
image/png -> png
image/gif -> gif
image/webp -> webp
image/svg+xml -> svg
audio/mpeg -> mp3
audio/ogg -> ogg
audio/wav -> wav
video/mp4 -> mp4
video/webm -> webm
application/pdf -> pdf