上传文件-Base64

通过Base64编码上传文件

HTTP 请求

Post /api/File/UploadBase64File

请求参数

{
    "name":"v2-fa2ba7f13f4235e78bd125e107ef32a3_r.png",
    "data":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZoA...",
    "bventId":"",
    "appId":"...",
    "sign":"...",
    "timestamp":"..."
}

响应参数

{
    "code": 0,
    "msg": "",
    "data": {
        "absoluteUrl": "https://evosfile.31huiyi.com/69e33737-bfb2-4a3f-b448-793bf2489a46.png",
        "fileName":"9280871c76fa4629d2e8.jpg",
        "id": "69e33737-bfb2-4a3f-b448-793bf2489a46"
    }
}

响应参数说明

参数名 参数类型 描述
id string 文件id
absoluteUrl string 文件绝对路径

Was this article helpful?

Related Articles

Leave A Comment?