8000 Cannot send file when use the 'File' type · Issue #1431 · apidoc/apidoc · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.
This repository was archived by the owner on Jun 11, 2024. It is now read-only.
Cannot send file when use the 'File' type #1431
Open
@duanmw

Description

@duanmw

Describe the bug

Use 'File' type for upload file
image
But what's actually being sent is a string, not a file
image

My expectation is that it should be a file. This is my own HTML implementation of the request effect:
image

I looked at the source code and should be here for the reason. when type is file, value should be el.files[0]
image

Steps to reproduce

Information

  • Version of apidoc: 1.2.0
  • Operating system (e.g. GNU+Linux/MacOS/Windows): windows
  • Node version: 16
  • Browser (e.g. firefox, chrome):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0