Skip to content

功能概述

文件上传

接口访问

接口地址

common/upload

请求方式 Method

POST

Header - Authorization Type : Bearer Token

属性类型长度必填默认值说明访问版本
tokenstring32true用户身份标识令牌-

请求参数

属性类型长度必填默认值说明
filefiletrue上传文件信息

返回值

属性类型必填说明
imageUrlstringtrue文件地址信息
fileNamestringtrue上传文件名称
addressstringtrue地址信息
upNamestringtrue文件名
fileTypestringtrue文件类型
fileSizeinttrue文件大小
imageIDinttrue文件id,当文件过大时返回

返回示例

{
    "response": {
        "imageUrl": "https://file.pushhaa.com/jr4tvofstxxgupspihomv5fxu4xhx2a4.docx",
        "fileName": "jr4tvofstxxgupspihomv5fxu4xhx2a4.docx",
        "address": "https://file.pushhaa.com/",
        "upName": "EAM系统操作手册.docx",
        "fileType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
        "fileSize": 1842.4
    },
    "requestId": "33498c92-4969-4de2-8fb9-82cc5792b5d0"
}

错误码

错误码错误描述解决思路
404Fail未知错误,请联系管理员
fileUploadFailed文件上传失败文件上传失败,请联系管理员