Skip to content

upload(上传管理)

对应数据库表(sys_file)

图片上传接口

JS
请求地址:/upload/image  // 🍓上传图片

请求方式:POST

🍓上传参数

▼Form Data
file: (binary)

🍓返回参数示例

JS
{
    "code": 200,
    "msg": "图片上传成功",
    "data": {
        "fullPath": "http://localhost:8888/uploads/images/98a3c53d-36d3f5f7868b.png",
        "relativePath": "/uploads/images/98a3c53d-f4da-4457-973e-36d3f5f7868b.png",
        "size": 273880,
        "fileName": "图片-avator.png",
        "fileType": "image/png",
        "fileUid": "98a3c53d-36d3f5f7868b"
    }
}

Released under the MIT License.