cURL
文件上传分为三步:
- 申请租约(本接口)— 获取 OSS 预签名 URL 和
leaseId - PUT 上传到 OSS — 使用返回的
param.url和param.headers通过 HTTP PUT 上传文件二进制内容 - 注册文件(
addFile)— 使用leaseId将文件注册到数据中心
sizeBytes 必须以字符串格式传入(如 "1048576"),不能传数字。Authorizations
string
header
required
DashScope API Key,在控制台 API Key 页面(https://rag.console.aliyun.com/settings/apikey)获取。