创建/上传对象
POST/v1/storages/object/:bucketId/:objectName
上传新对象到指定 Bucket。支持 multipart/form-data 和 binary body 两种上传方式。
Multipart 表单上传:Content-Type 为 multipart/form-data,文件通过 file part 传递,可附带 cacheControl、contentType、metadata 等字段。
Binary Body 直传:Content-Type 为文件实际 MIME 类型(如 image/png),Body 直接为文件内容,元信息通过 Header 传递。
Request
Responses
- 200
- 400
- 404
- 409
- 413
上传成功
对象名称不合法 / MIME 类型不被允许 / 或缺少 Authorization 头(message: headers must have required property 'authorization')
Bucket 不存在
对象已存在(未设置 x-upsert)
文件大小超过限制