Skip to content

fix: handle formdata correctly from form action - #1815

Merged
schiller-manuel merged 1 commit into
mainfrom
patch-formdata-in
Jun 22, 2024
Merged

schiller-manuel merged 1 commit into
mainfrom
patch-formdata-in

Conversation

@crutchcorn

Copy link
Copy Markdown
Member

When using a form like so:

export const handleForm = createServerFn('POST', async (formData: FormData, ctx) => {
});

<form action={handleForm.url} method="post" encType={"multipart/form-data"}/>

The form action would not be passed to the server handler appropriately. This PR fixes this behavior to work as-intended

@crutchcorn
crutchcorn requested a review from tannerlinsley June 22, 2024 05:16
@nx-cloud

nx-cloud Bot commented Jun 22, 2024 •

Copy link
Copy Markdown
Contributor

☁️ Nx Cloud Report

CI is running/has finished running commands for commit a67efbd. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


🟥 Failed Commands
nx run-many --target=test:e2e:replay
✅ Successfully ran 3 targets

Sent with 💌 from NxCloud.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants