Skip to content
Discussion options

You must be logged in to vote

Typically, as we'd expect that only one client or client config to be used, exchanges are designed as a pipeline and not per-component plugins.

https://formidable.com/open-source/urql/docs/advanced/persistence-and-uploads/#file-uploads

[...] which is a drop-in replacement for the default fetchExchange [...]
When the multipartFetchExchange sees at least one File in the variables it receives for a mutation, then it will send a multipart/form-data POST request instead of a standard application/json one.

Ergo it behaves like the normal fetch exchange and will otherwise switch as needed to support file uploads

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sa-webb
Comment options

Answer selected by kitten
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants