# 流式上传文件

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/fs/put:
    put:
      summary: 流式上传文件
      deprecated: false
      description: ''
      tags:
        - fs
        - fs
        - alist Copy/fs
      parameters:
        - name: Authorization
          in: header
          description: ''
          required: true
          example: '{{alist_token}}'
          schema:
            type: string
        - name: File-Path
          in: header
          description: 经过URL编码的完整目标文件路径
          required: true
          example: ''
          schema:
            type: string
        - name: As-Task
          in: header
          description: 是否添加为任务
          required: false
          example: 'true'
          schema:
            type: string
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: ''
          schema:
            type: string
        - name: Content-Length
          in: header
          description: ''
          required: true
          example: ''
          schema:
            type: string
      requestBody:
        content:
          application/octet-stream:
            schema:
              type: string
              format: binary
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    title: 状态码
                  message:
                    type: string
                    title: 信息
                  data:
                    type: object
                    properties:
                      task:
                        type: object
                        properties:
                          id:
                            type: string
                          name:
                            type: string
                          state:
                            type: integer
                          status:
                            type: string
                          progress:
                            type: integer
                          error:
                            type: string
                        required:
                          - id
                          - name
                          - state
                          - status
                          - progress
                          - error
                        x-apifox-orders:
                          - id
                          - name
                          - state
                          - status
                          - progress
                          - error
                    required:
                      - task
                    x-apifox-orders:
                      - task
                required:
                  - code
                  - message
                  - data
                x-apifox-orders:
                  - code
                  - message
                  - data
              example:
                code: 200
                message: success
                data:
                  task:
                    id: sdH2LbjyWRk
                    name: upload animated_zoom.gif to [/data](/alist)
                    state: 0
                    status: uploading
                    progress: 0
                    error: ''
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: fs
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/6849786/apis/api-327955429-run
components:
  schemas: {}
  securitySchemes: {}
servers: []
security: []

```
