@@ -1006,7 +1006,7 @@ Objects in the `files` object have properties such as `name` (the
10061006filename), ` size ` (the file's size in bytes), and ` type ` (the media
10071007type of the file, such as ` text/plain ` or ` image/jpeg ` ).
10081008
1009- {{index "asynchronous programming", "file reading", "FileReader type "}}
1009+ {{index "asynchronous programming", "file reading", "FileReader class "}}
10101010
10111011{{id filereader}}
10121012
@@ -1032,14 +1032,14 @@ avoid freezing the document.
10321032</script>
10331033```
10341034
1035- {{index "FileReader type ", "load event", "readAsText method", "result property"}}
1035+ {{index "FileReader class ", "load event", "readAsText method", "result property"}}
10361036
10371037Reading a file is done by creating a ` FileReader ` object, registering
10381038a ` "load" ` event handler for it, and calling its ` readAsText ` method,
10391039giving it the file we want to read. Once loading finishes, the
10401040reader's ` result ` property contains the file's content.
10411041
1042- {{index "error event", "FileReader type ", "Promise class"}}
1042+ {{index "error event", "FileReader class ", "Promise class"}}
10431043
10441044_ FileReader_s also fire an ` "error" ` event when reading the file fails
10451045for any reason. The error object itself will end up in the reader's
0 commit comments