Why error if we click on upload button | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3
13th Sep 2020, 1:19 PM
Papa Penguin
3 Answers
+ 5
It is missing semi colons and you have declared a variable at line 7 but didn't use it
13th Sep 2020, 1:44 PM
OfcourseitsRohit
OfcourseitsRohit - avatar
+ 2
Probably fileReader is not supported in Sololearn. Try to run your code somewhere else. Edited: actually it should be FileReader, but it seems that file loading is not supported here on Sololearn - it is not possible to select a file. I tried your code with Windows 10 and Chrome and it was working fine after fileReader -> FileReader change.
13th Sep 2020, 2:26 PM
SergeiRom