POST / Content-Type: multipart/form-data form-data: - file: [文件对象]2. JSON API 上传:
POST /api/upload
Content-Type: application/json
{
"fileName": "example.jpg",
"fileContent": "base64编码的文件内容"
}
3. 响应格式:
{
"success": true,
"url": "https://maxwell.sgp1.cdn.digitaloceanspaces.com/2025/7/filename.ext"
}