OU blog

Personal Blogs

2022_Profile_Pic_G_Muirhead

TT284

Visible to anyone in the world
Edited by George Muirhead, Monday, 25 Jan 2021, 11:41

The most single important piece of text I’ve come across!


“Similar to the code for obtaining the file from the image file input, a ‘load’ event object has a target property referring to the object that triggered the event, i.e. the FileReader object. This in turn has a result property which will contain the data read from the file. This will be a data URL, so we can assign it to the src property of the image element to make it appear on the page.”


What does this mean?

It means the file reader object has a result property.

Permalink
Share post