Avoid to reset input file with Next.js and Server actions #1096
Unanswered
federicocappellotto97
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, i'm setupping a form using server action, but my problem is the input file is resetting also if validation is not successful
Here's an example Code Sandbox
As you can see if you upload an image, and then you send the form with an invalid email the input file is resetted, instead the email input is not.
How can i avoid this? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions