uploadImage_Aliyun
服务运行中,OSS 配置已识别
健康检查
上传接口
POST /upload/image认证方式
Authorization: Bearer <token>文件字段
file可选字段
prefix,默认 uploads大小限制
5MB
支持类型
jpg/jpeg/png/webp/gif
测试上传命令:
curl -H "Authorization: Bearer YOUR_TOKEN" -F "file=@/path/to/image.jpg" -F "prefix=uploads" http://127.0.0.1/upload/image
uni-app 调用时,name 固定传 file,并在请求头里带业务登录 Token。