Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Failed pass FormData to URLSearchParams with Cloudflare Pages Functions #2962

Open
ergofriend opened this issue Apr 22, 2022 · 0 comments

Comments

@ergofriend
Copy link

What version of Remix are you using?

1.4.1

Steps to Reproduce

    "@remix-run/cloudflare": "^1.4.1",
    "@remix-run/cloudflare-pages": "^1.4.1",
    "@remix-run/react": "^1.4.1",
export const action: ActionFunction = async ({context, request}) => {
  const formData = await request.clone().formData()
  const data = new URLSearchParams(formData as URLSearchParams).toString()
  console.log(data)
})

Expected Behavior

If we post FormData {like: "takenoko"}, console.log(data) should output like=takenoko

Actual Behavior

but, console.log(data) output empty string
For more detail, please watch this issue seasonedcc/composable-functions#18

@ergofriend ergofriend changed the title Failed pass FormData to URLSearchParams with Cloudflare Pages Functions [Bug]: Failed pass FormData to URLSearchParams with Cloudflare Pages Functions Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants