API Reference
Upload files programmatically. One endpoint, multipart form data.
Endpoint
POST
https://phd-madrin.zone.id/api/uploadcURL example
curl -X POST https://phd-madrin.zone.id/api/upload \ -F "file=@/path/to/your/file.png"
Response
{
"url": "https://phd-madrin.zone.id/f/aB3x9k2p.png",
"originalUrl": "https://...blob.vercel-storage.com/aB3x9k2p.png",
"filename": "aB3x9k2p.png",
"size": 24817
}Supported formats
ImagesDocumentsArchivesVideosAudio
Any file type is accepted. Maximum size 50 MB per upload.
Notes
- Filenames are auto-shortened to 8 random characters plus the original extension.
- The proxied
/f/[filename]URL is the preferred share link. - No authentication required. Rate limits may apply.