From 8de3f74de996081accf4e0b26cfb896bb24a8bb4 Mon Sep 17 00:00:00 2001 From: Brenley Dueck Date: Sat, 23 Nov 2024 22:41:11 -0600 Subject: [PATCH] add note about file uploads (#960) Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- src/routes/solid-router/concepts/actions.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/routes/solid-router/concepts/actions.mdx b/src/routes/solid-router/concepts/actions.mdx index 379514278..d1e4647f7 100644 --- a/src/routes/solid-router/concepts/actions.mdx +++ b/src/routes/solid-router/concepts/actions.mdx @@ -137,6 +137,8 @@ export function MyComponent() { } ``` +**Note:** If you are uploading files make sure you include `enctype="multipart/form-data"` to your `
` element. + ## Error handling Rather than throwing errors, it is recommended to return them from actions.