Search code examples
reactjsreact-reduxreact-final-form

How to create an upload file field using react-final-form?


I am trying to create an upload field ( class based ) using react-final-form

Strangely documentation does not contain any info regarding this. Is there any way to implement this?

I am getting a junk file link that is not useful to upload the file to the server.

please help


Solution

  • you might want to consider using something like react-dropzone. I did mix it up with react-final-form in my last projects & it worked fine. I stripped it off the validation logic & some other extra stuff, & uploaded it for you here. it's not class-based, but I hope you can work from here.