# nginxWebUI

## 9. 文件上传接口

### 9.1. 文件上传

URL: /api/upload/upload

Type: GET

Author: CYM

Content-Type: multipart/form-data

Description: 文件上传

Query-parameters:

Parameter | Type | Description | Required | Since
--- | --- | --- | --- | ---
file | file | No comments found. | false | -

Request-example:

    curl -X GET -H 'Content-Type: multipart/form-data' -i /api/upload/upload

Response-fields:

Field | Type | Description | Since
--- | --- | --- | ---
success | boolean | 请求结果 | -
status | string | 请求状态 200:请求成功 401:token无效 500:服务器错误 | -
msg | string | 错误信息 | -
obj | object | 返回内容 | -

Response-example:

    {
      "success": true,
      "status": "",
      "msg": "",
      "obj": {}
    }