Send any image, video, audio, or document as multipart/form-data and get back a permanent CDN URL — no auth, no SDK required.
# upload any file and get its CDN URL back curl -X POST https://cdnfiles.zone.id/api/upload \ -F "file=@/path/to/photo.png"
const form = new FormData(); form.append('file', fileInput.files[0]); const res = await fetch('https://cdnfiles.zone.id/api/upload', { method: 'POST', body: form }); const data = await res.json(); console.log(data.url); // https://cdnfiles.zone.id/img/photo.png
import requests with open("photo.png", "rb") as f: res = requests.post( "https://cdnfiles.zone.id/api/upload", files={"file": f} ) data = res.json() print(data["url"])
{
"status": "success",
"filename": "x.png",
"size_bytes": 1024,
"url": "https://cdnfiles.zone.id/img/x.png"
}
Paste any file URL below and process it — images, video, audio, and documents are detected and previewed automatically.