react-filepond
react-filepond copied to clipboard
Expose ref for `<input type="file">` element
Is your feature request related to a problem? Please describe.
Currently, it's not possible to get the ref for the underlying <input> element which makes this library difficult to use with libraries like "react-hook-form".
Describe the solution you'd like
Expose a prop inputRef so the author can provide their own ref.
Describe alternatives you've considered Hacky solutions of traversing the DOM 😢
Additional context N/A
FilePond generates a custom list of input elements to store its data, the elements are removed when files are deleted, not sure how that would work with a ref
how to get the file inside onSubmit then?
get a ref to FilePond component and call getFiles() on the FilePond instance in the ref.