parameter is not of type 'Blob'

后端 未结 4 901
野趣味
野趣味 2020-12-17 09:41

I have written the code below to display the text from a local file using the file API but when I click the button, nothing happens. I get the following error when I inspect

4条回答
  •  情歌与酒
    2020-12-17 09:49

    Well! not sure about the others, but in my case it was solved by using fileObjects[0].file

    A good way to look at it would be to print your 'files' or 'fileObjects' in the console and then see whether you require the .file in the end.

提交回复
热议问题