post:
  tags:
    - posts
  summary: Upload a file to a specific post
  description: Provided by NodeBB core and used mainly by the composer, this route allows you to upload an image or file to a post.
  responses:
    "200":
      description: ""
      content:
        application/json:
          schema:
            type: array
            items:
              type: object
              properties:
                name:
                  type: string
                url:
                  type: string
        text/plain:
          schema:
            type: array
            items:
              type: object
              properties:
                name:
                  type: string
                url:
                  type: string
    "403":
      description: ""
      content:
        application/json:
          schema:
            type: string
            example: Forbidden
        text/plain:
          schema:
            type: string
            example: Forbidden
    "500":
      description: ""
      content:
        application/json:
          schema:
            type: object
            properties:
              path:
                type: string
              error:
                type: string
        text/plain:
          schema:
            type: object
            properties:
              path:
                type: string
              error:
                type: string