Click to see the upload optionWhen I choose an image file, it gets chosen but I am unable to extract the title of the chosen image. I need to get this title and push it to a table as a part of a column. Is there any way to do the same? Click to see the table fragment
I'm not sure if this is what you're looking for but you can extract the title through onChange like this.
<input
type="file"
onChange={x => {
console.log(x.target.files[0].name);
}}
/>
here's the sandbox example
This throws an error saying 'Parameter 'x' implicitly has an 'any' type.'
Moreover, what I need to do is pass the title to a table. How do I do that?
Here. I updated the sandbox sample to pass the values to table as well as removed the error. codesandbox.io/s/…
That seemed to work, thank you so much!