Parameter 1 is not of type 'Blob'

Trying to make this recipe https://github.com/josdirksen/threejs-cookbook/blob/b954c5af0eae8a9710afa6afb810bd13b6c32817/01-getting-started/01.14-drag-file-to-scene.html
When you drag a cube into a dashed square in the console, writes
parameter 1 is not of type ‘Blob’. I didn’t change the code, I just copied it from the example. Is this recipe out of date, too?

The idea of this demo is to drag a texture onto the square. When you drop it, it will be automatically applied to the cube.

I’ve tested it on my computer and it works as expected.

Thanks. I wiil be search a mistake.

What’s the “blob”? I understood that the problem was readAsDataURL, but what?

I suggest you read existing resources about this topic. E.g.

1 Like