How is Jasny Bootstrap's image upload -- instant preview implemented?

194 Views Asked by At

Does jasny upload the image onto my server? Or is it a local file? If it is a local file, does it mean that our browser can access our private files?

1

There are 1 best solutions below

0
On

The preview is generated client side using a FileReader object.

reader.readAsDataURL(file)

You can take a look at the source code of the Fileinput.change function.