You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
We are experiencing an issue when uploading an image JPG with iOS with apollo-upload-client.
The image is taken from the gallery (original size is around 2.4 MB) and we compress it to around 500 kB. We upload it to server with a mutation where we use graphql-upload with middleware graphqlUploadExpress using ReactNativeFile. However, when we check the image on S3, the image is 2 MB. We tried with several images and the result is similar: uploaded image is bigger than the compressed one.
We tried to upload the image without the middleware using a plain POST request and in this case, the image was uploaded with the expected size (500 kB).
Interesting that we do not have the same problem with Android using the same code. Any suggestion for debugging it?
Closing because the apollo-upload-client approach uses standard web platform APIs like File, FormData and fetch so I don't think your issues could relate to this particular package. Of course, if you end up finding the source of the problem and it's a bug here we can reopen.
Hi,
We are experiencing an issue when uploading an image JPG with iOS with
apollo-upload-client
.The image is taken from the gallery (original size is around 2.4 MB) and we compress it to around 500 kB. We upload it to server with a mutation where we use
graphql-upload
with middlewaregraphqlUploadExpress
usingReactNativeFile
. However, when we check the image on S3, the image is 2 MB. We tried with several images and the result is similar: uploaded image is bigger than the compressed one.We tried to upload the image without the middleware using a plain POST request and in this case, the image was uploaded with the expected size (500 kB).
Interesting that we do not have the same problem with Android using the same code. Any suggestion for debugging it?
cf. jaydenseric/graphql-upload#82
The text was updated successfully, but these errors were encountered: