Skip to content
Discussion options

You must be logged in to vote

No it is not possible, actions are designed to populate the form property of a page and therefore have to be fully serializable. A generic file, image or csv doesn't fall into that category. So the result from an action always has to be a simple object.

You will have to implement your form handling the "normal" way using an API endpoint as described here: https://kit.svelte.dev/docs/form-actions#alternatives

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by simonsarris
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants