File data is not available in the submit data with a Controller and file input #5394
-
Describe the bug On version : 7.6.10 To Reproduce Codesandbox link (Required) Expected behavior Desktop (please complete the following information):
Additional context |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 16 replies
-
This is due to what you have supplied to render={({ filed }) => {
<Input onChange={(e) => { filed.onChange(e.target.files) }} /> // instead e.target.value
}} |
Beta Was this translation helpful? Give feedback.
-
https://codesandbox.io/s/long-sun-nsfbk?file=/src/App.js what about this? |
Beta Was this translation helpful? Give feedback.
https://codesandbox.io/s/long-sun-nsfbk?file=/src/App.js what about this?