Trying to upload a file using Formik but get an InvalidStateError: Failed to set the 'value' property on 'HTMLInputElement': #3128
Unanswered
Stephane-Pires
asked this question in
Q&A
Replies: 3 comments 11 replies
-
Same here :( |
Beta Was this translation helpful? Give feedback.
5 replies
-
The value of Here's how I have approached it:
|
Beta Was this translation helpful? Give feedback.
1 reply
-
i was same problem with react-hook-form, u should set value of input to undefined, will fixed, i think checking of form incorrect |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to upload a simple image file.
But can't understand why i'm getting
InvalidStateError: Failed to set the 'value' property on 'HTMLInputElement': This input element accepts a filename, which may only be programmatically set to the empty string.
Here's my code :)
Usage
I have been struggling with this the whole day.
Also, i'm new to Formik, but i know a bit about React :)
Beta Was this translation helpful? Give feedback.
All reactions