jaydenseric / graphql-upload

Middleware and an Upload scalar 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 131 forks source link

Incomplete File Upload #247

Closed shubhamprshr27 closed 3 years ago

shubhamprshr27 commented 3 years ago

I am trying to upload an image as a part of a mutation. Testing this in local. Need to validate whether the image is of correct dimension and size, for that the stream needs to be converted into a buffer. However when I do so, the file uploaded seems to be smaller in size than the actual file. Which means that the stream seems to get closed before the complete file upload: https://github.com/image-size/image-size/issues/73

Can it be possible due to some configuration miss from my side? Please let me know, we can sync up on this.

shubhamprshr27 commented 3 years ago

Solved this I was doing something wrongly, never mind. :)