Skip to content

Sending FormData through client.mutate() #82

Description

@pranaybinju

Is there any way I can send FormData through client.mutate() ? I have a file which needs to be sent as FormData to backend as POST request. We are using a wrapper function over client.mutate() to send file, but it is sent as blank object, seems due to JSON.stringify present inside the mutate function applied to data.

options.body = JSON.stringify(data)

Would be helpful if you can suggest a way for it.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions