Replies: 3 comments
-
Okay, after digging through the source code I add the now deprecated It'd be great to be able to customise the check that urql does for detecting when to use a multipart file. |
Beta Was this translation helpful? Give feedback.
-
I'm not aware of a If you're referring to I'd refer to the decision stated in
Which actually also applies to a bunch of other APIs that are unavailable on React Native and hence limis features in Anyway, I currently can't test this myself, and don't have time to look up whether |
Beta Was this translation helpful? Give feedback.
-
Thanks for the prompt reply! You are right -
💯 agree here - however it seems that they haven't yet. When I use the I am relatively new to uploading files myself other than libraries like S3 / Firebase / Supabase that abstract a lot of the stuff away. We use Expo and a lot of the workarounds for Blob support only work in react-native as they require native code (we use expo so can't use them)
I'll take a look at this! |
Beta Was this translation helpful? Give feedback.
-
Hi there, I have spent the last few days battling file uploads in React Native.
I am using graphql-upload and have file uploads working on the web as expected. However, I haven't been able to get it working on react-native.
I see that using Apollo Client there is a
ReactNativeFile
that handles files for React Native. However, with Urql there is onlyBlob
andFile
checks support.This works fine on the web as it has File and Blob support, however React Native doesn't have the same support for this.
I am wondering what the recommended way of supporting React Native is for Urql with Graphql Upload? Thanks 😄
Beta Was this translation helpful? Give feedback.
All reactions