jaydenseric / graphql-upload

Middleware and a scalar Upload to add support for GraphQL multipart requests (file uploads via queries and mutations) to various Node.js GraphQL servers.
https://npm.im/graphql-upload
MIT License
1.43k stars 132 forks source link

BadRequestError: Missing multipart field ‘operations’ (https://github.com/jaydenseric/graphql-multipart-request-spec) #207

Closed moussouba closed 4 years ago

moussouba commented 4 years ago

Capture d’écran de 2020-05-24 17-21-15

the variable operations on the lib/processRequest.js file at line 315 is always undefined

jaydenseric commented 4 years ago

Perhaps the error message is correct, the multipart form field operations is missing from the request.

moussouba commented 4 years ago

the multipart form field operations is there; on the request body

jaydenseric commented 4 years ago

In the Chrome network inspector, in the outgoing request you should be able to see the multipart form, and it should look something like this:

https://github.com/jaydenseric/graphql-multipart-request-spec#request-payload-1

gpDA commented 2 years ago

does anyone experience the same issue?

The following is my request payload

I use form Data to send the file

image