Skip to content

Override file upload payload #3435

Answered by kitten
zorzysty asked this question in Q&A
Nov 16, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

You'd have to make a custom exchange that operates separately from the default/built-in fetch exchange.
Luckily, the fetch utilities are broken up into reusable pieces, and this used to be used in the legacy/deprecated multipart exchange: https://github.com/urql-graphql/urql/tree/16b9023f805683a0565a323bf26e70ce582a8f40/exchanges/multipart-fetch
So, you might be able to adapt this to your needs.

However, it's more advisable to open an issue over at Absinthe (unless they have an existing one) to point out that, rather than custom modules for Apollo, it may be advisable to adapt and stick to the de-facto standard

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@zorzysty
Comment options

@kitten
Comment options

Answer selected by zorzysty
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