Upload

生成前端直传 Cloudflare R2 的预签名 PUT URL。

Changed on
get/api/upload/presignedUrl

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Query parameters

fileNamestring required
contentTypestring required

Response

Successful HTTP response; legacy business endpoints may return success=false in this envelope, while social endpoints use matching 4xx/5xx statuses

codeinteger
dataobject
errorCodestring
messagestring
successboolean

Changes