Angular: How to use with file input #679
-
Is it possible to integrate with the file input? I tried something like this
But i'm getting the following error on load
When i select a file ( Is it possible to get both the filename and the data(uint8Array or something else) |
Beta Was this translation helpful? Give feedback.
Answered by
crutchcorn
Apr 18, 2024
Replies: 1 comment 1 reply
-
It should be possible to do a one-way binding from the To do this, you'll want to use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
crutchcorn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It should be possible to do a one-way binding from the
HTMLInput
to TanStack Form, but not the other way around (DOM limitation).To do this, you'll want to use
handleChange($any($event).files)
rather thantarget.value