File Upload Documentation
Dear React-Final-Form developers,
I'm struggling to find a simple example of a file upload integration, can you help put me in the right direction?
Thank-you kindly
Matt
have you figured this out?
I think we should just have a custom component that handles the upload and then it changes the value of a validation of some sort in the parent where the form is.
There's a duplicate issue about this here
@johhansantana
I used react-dropzone in combination with final-form - it's working great. The uploads begin as soon as the file is dropped, and when the file upload is complete, I then allow the form to be submitted (if the other validations also pass), the form sends along the files-names that were uploaded, as part form submit.
Using the examples of #92 I was able to get something together and iterate it.
@mattsrobot
Would you be able to create a quick codesandbox or something that I can view? I've been trying to follow https://github.com/final-form/react-final-form/issues/92 as well, but I can't figure it out. Been working on it for the past two days and I am not getting any close to finding a solution.
Thank you!
I'm using react-final-form and react-dropzone as well.
Seconded. I just posted about this on SO, any help would be appreciated!
@mattsrobot Any chance for some code example?