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
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.