A
A
Alexander Koshelev2019-07-30 09:00:48
Node.js
Alexander Koshelev, 2019-07-30 09:00:48

Why doesn't the photo load with the img src tag in a node.js project?

Good afternoon guys, I'm doing a project on a node, I use the ejs template engine in it, css is connected without problems, but the pictures don't load,
here's the structure:

views/index.ejs
img/18.png

I just want to upload a photo at least to the index, but it doesn’t oppose, I registered the following path ../ left the views folder, went to the img folder and take a photo, but for some reason it doesn’t load, can you help? maybe there are some features of the ejs template engine or what? On the official website I did not find anything about uploading a photo
<img src="../img/18.png" alt="фото">

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael, 2019-07-30
@Xandr24

../img/18.png relative to what?
site.ru/../img/18.png ???????????

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question