Skip to content

[Question] how to pass File variable into request originating from server #400

@jezzzm

Description

@jezzzm

Context: I'm using Remix to send gql mutations to separate backend service.

Workflow:

  1. standard form submission (multipart) from frontend to Remix backend action.
  2. form is parsed with remix helper
  3. variables passed to graphql request
  4. I can see that the body is successfully transformed to new formdata conforming to the graphql upload spec
  5. other backend service responds with error POST body missing, invalid Content-Type, or JSON object has no keys.

Inspecting the headers just before it is sent off suggests that multipart/form-data boundary=XYZ content type header is not being set -- in fact there is no content type specified at all

I'm not sure if I'm doing something wrong or if this is a limitation of the library at the moment?

any help is much appreciated!
Cheers

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