Skip to content

Content-Type: "multipart/form-data" is ignored #671

Closed
@inomn

Description

@inomn

In generated axios http-API client there's a line

headers: {
        ...(requestParams.headers || {}),
        ...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}),
      },

this prevents us from sending a request with content-type multipart/form-data.
Could anyone tell me what the reason was for this solution?

Replacing this with a simple

      headers: {
        ...(requestParams.headers || {}),
        "Content-Type": type
      },

fixes the issue

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