How to integrate local png graphics in my code

Hi together. I have downloaded some PNG graphics, which I would like to use in my code. When I try to use them I got an error in the java script console: Not allowed to load local resource
I gave permission for ‘all’ to read and write the following files in the mac share section.
file:///Users/sebastianschwarzer/Downloads/kapitel8/texture/Gold.PNG
What do I do wrong?

You didn’t do anything wrong, unfortunately. Local graphics are currently not supported, but it is a feature that we hope to add to 3DE in the near future. For the time being, the only way to get this work is to use a publicly available image, such as those on Wikimedia Commons. Then you can include that in your code such as:

  var texture = new THREE.TextureLoader().load("https://upload.wikimedia.org/wikipedia/commons/d/d8/GOLD_METALLIC_TEXTURE_%287241678418%29.jpg");

-Chris