如何获取要在打字稿的图像 ID 列中作为值输入的上传图像的标题?

How do I get the title of an uploaded image which is to be entered as a value in the image ID column in typescript?

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

The code sample here.

我不确定这是否是您要查找的内容,但您可以像这样通过 onChange 提取标题。

<input
  type="file"
  onChange={x => {
    console.log(x.target.files[0].name);
  }}
/>

这是沙盒 example