# 文件上传

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/qw/doFileApi:
    post:
      summary: 文件上传
      deprecated: false
      description: ''
      tags:
        - 云存储CDN模块
      parameters:
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: X-QIWEI-TOKEN
          in: header
          description: ''
          example: '{{tokenId}}'
          schema:
            type: string
            default: '{{tokenId}}'
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                method:
                  example: /cloud/cdnBigUpload
                  type: string
                guid:
                  example: '{{guid}}'
                  type: string
                file:
                  description: 文件
                  example: ''
                  type: string
                  format: binary
                fileType:
                  description: '1: jpg图片, 4: mp4视频, 5: 文件(也包括语音amr文件)'
                  example: 1
                  type: integer
              required:
                - method
                - guid
                - file
                - fileType
            examples: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      fileAesKey:
                        type: string
                      fileId:
                        type: string
                      fileKey:
                        type: string
                      fileMd5:
                        type: string
                      fileSize:
                        type: integer
                      fileThumbSize:
                        type: integer
                      durationTime:
                        type: integer
                    required:
                      - fileAesKey
                      - fileId
                      - fileKey
                      - fileMd5
                      - fileSize
                      - fileThumbSize
                      - durationTime
                    x-apifox-orders:
                      - fileAesKey
                      - fileId
                      - fileKey
                      - fileMd5
                      - fileSize
                      - fileThumbSize
                      - durationTime
                  01KAD9V0QW5S1GKTYX7VAST1CX:
                    type: string
                required:
                  - code
                  - msg
                  - data
                  - 01KAD9V0QW5S1GKTYX7VAST1CX
                x-apifox-orders:
                  - code
                  - msg
                  - data
                  - 01KAD9V0QW5S1GKTYX7VAST1CX
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: 云存储CDN模块
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/7051713/apis/api-344613899-run
components:
  schemas: {}
  securitySchemes: {}
servers: []
security: []

```