EJS Front-End unable to find the image I'm trying to display

31 views Asked by At

I have these two methods inside a VenomBot class, that generates a QR Code image and stores it in a folder called images.

This is the organization of my code

And these are the functions that starts the process

Finally, that's the front-end EJS code that was supposed to show the QR Code

The problem is that everything is going fine, but when the QR Code was about to get loaded at the front-end, it appears that the EJS file isn't finding it, why?

I've already tried to change the image path in every way possible

1

There are 1 answers

1
Joel Jorge On

Is it static middleware enabled , like this , app.use(express.static('/images'))