Media Storage & Retrieval API Documentation
The Digicom Media Server is a high-performance, scalable media management system built with Fiber (Go web framework) and MinIO (S3-compatible object storage). It provides RESTful APIs for uploading, retrieving, and managing image and video files.
{
"status": "ok",
"message": "Digicom Media Server is running",
"port": "8601",
"bucket": "digicom"
}curl https://media.digicom.com.hk/image/profile.jpgcurl https://media.digicom.com.hk/video/intro.mp4# Upload single image
curl -X POST https://media.digicom.com.hk/upload \
-F "type=images" \
-F "files=@/path/to/image.jpg"
# Upload multiple files
curl -X POST https://media.digicom.com.hk/upload \
-F "type=videos" \
-F "files=@/path/to/video1.mp4" \
-F "files=@/path/to/video2.mp4"{
"message": "Files uploaded successfully",
"files": [
{
"filename": "image.jpg",
"type": "images",
"size": 152400
}
]
}curl https://media.digicom.com.hk/list/images
curl https://media.digicom.com.hk/list/videos{
"type": "images",
"count": 5,
"files": [
{
"filename": "profile.jpg",
"size": 152400,
"modified": "2026-01-18T10:30:00Z"
},
{
"filename": "banner.png",
"size": 324800,
"modified": "2026-01-18T09:15:00Z"
}
]
}curl -X DELETE https://media.digicom.com.hk/delete/images/profile.jpg
curl -X DELETE https://media.digicom.com.hk/delete/videos/intro.mp4{
"message": "File deleted successfully",
"file": "profile.jpg"
}Files are organized in the digicom bucket with the following structure:
digicom/
├── images/
│ ├── profile.jpg
│ ├── banner.png
│ └── ...
└── videos/
├── intro.mp4
├── tutorial.webm
└── ...curl -X POST https://media.digicom.com.hk/upload \
-F "type=images" \
-F "files=@image.jpg"curl https://media.digicom.com.hk/image/image.jpg -o downloaded.jpgcurl https://media.digicom.com.hk/list/imagescurl -X DELETE https://media.digicom.com.hk/delete/images/image.jpg