Skip to content

request.formData() doesn't resolve if it is read in Express middleware #10132

Answered by sergiodxa
ricardocosta asked this question in Q&A
Discussion options

You must be logged in to vote

The body of a request can only be read once, this is because the browser stream it so next time you want to read it it already ended the stream.

Either don't read it on Express or pass the read body to Remix using getLoadContext.

Replies: 1 comment 2 replies

Comment options

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

@sergiodxa
Comment options

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