Skip to content

Missing support for multipart/form-data (file upload use case) #7

Description

@francescobianco

Missing support for multipart/form-data (file upload use case)

Description
Cannot upload files using SDK in a typical Go service.

Code snippet

body := &bytes.Buffer{}
writer := multipart.NewWriter(body)

// add file...

_, err := apiClient.Request(ctx, "POST", baseURL, "/upload", body, nil)

Issue
No way to set Content-Type: multipart/form-data.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions