系统文件上传 - xinwu-yang/cube-java GitHub Wiki

统一文件上传规则

application-dev.yml 中配置目录

cube:
  resources:
    #文件上传根目录 设置
    upload-path: /app/files
    #webapp文件路径
    webapp: /app/webapp

访问路径

描述:上传到系统指定文件目录

ContentType:multipart/form-data

请求头

名称 必填 描述 示例值
X-Access-Token 鉴权Token 6242b39f-22bf-4312-9ad8-009004279362

请求参数

Body Parameter
名称 类型 必填 最大长度 描述 示例值
biz string - 上传目录 3l6dw4
file file - No comments found.

响应参数

名称 类型 必填 最大长度 描述 示例值
success boolean - No comments found. true
message string - No comments found. success
code int32 - No comments found. 563
result object - No comments found.
timestamp int64 - No comments found. 1657603695567

S3协议文件上传

参考魔方Plugins 文件的上传和下载