七牛云存储base64的数据 如何上传?
回复内容:
七牛云存储base64的数据 如何上传?
请求包:
POST /put/<fsize>/key/<encodedkey>/mimeType/<encodedmimetype>/crc32/<crc32>/x:user-var/<encodeduservarval> Authorization: UpToken <uptoken> Content-Type: application/octet-stream <filecontent></filecontent></uptoken></encodeduservarval></crc32></encodedmimetype></encodedkey></fsize>
或
使用官方Model Context Protocol PHP SDK将PHP应用程序功能暴露为MCP工具、资源和提示,用于代理工作流。
POST /putb64/<fsize>/key/<encodedkey>/mimeType/<encodedmimetype>/crc32/<crc32>/x:user-var/<encodeduservarval> Authorization: UpToken <uptoken> Content-Type: application/octet-stream <base64encodedfilecontent></base64encodedfilecontent></uptoken></encodeduservarval></crc32></encodedmimetype></encodedkey></fsize>
-
: 文件大小,必选。未来也许可以支持传入 -1 表示文件大小以 http request body 为准。 -
: 可选,如果没有指定则:如果 uptoken.SaveKey 存在则基于 SaveKey 生产 key,否则用 hash 值作 key。 -
: 文件的 MIME 类型。可选,默认是 application/octet-stream。 -
: 文件内容的 crc32 校验值。可选,不指定则不进行校验。
返回包:
200 OK {
hash: <etag>
}
</etag>
怎么都没有人回答啊










