node.js pug при вводе неправильного расположения фото показывает что неправильно при правильном ничего не показывает хотя в исходном коде картинка есть Вот код: Код (Javascript): var express = require('express'); var mysql = require('mysql'); const fileUpload = require('express-fileupload'); var app = express(); const bodyParser = require("body-parser"); app.use(fileUpload()); app.use('/smart', express.static(__dirname + '/files/sphoto/')); /// /// Create connection to MySQL database server. /// function getMySQLConnection() { return mysql.createConnection({ host : 'localhost', user : 'root', password : '', database : 'elektronika' }); } app.set('view engine', 'pug'); const urlencodedParser = bodyParser.urlencoded({extended: false}); app.get('/smart', function(req, res) { var smartphopneList = []; // Connect to MySQL database. var connection = getMySQLConnection(); connection.connect(); // Do the query to get data. connection.query('SELECT `id`,`prod`,`name`,`sim`,`display`,`razresh`,`acum`,`proc`,`oper`,`sd`,`cam`,`gps`,`description`,`giroscope`,`payment`,`photo` FROM `smartphone` ', function(err, rows, fields) { if (err) { res.status(500).json({"status_code": 500,"status_message": "internal server error"}); } else { // Loop check on each row for (var i = 0; i < rows.length; i++) { // Create an object to save current row's data var smartphopne = { 'id':rows[i].id, 'prod':rows[i].prod, 'name':rows[i].name, 'photo':rows[i].photo } // Add object into array smartphopneList.push(smartphopne); } // Render index.pug page using array res.render('index', {"smartphopneList": smartphopneList}); } }); // Close the MySQL connection connection.end(); }); app.listen(3000, function () { console.log('listening on port', 3000); }); Код (Text): html head title= 'Smartphones' style include style.css include bootstrap.css body h1= 'Smartphones' for smart in smartphopneList div= "id" + smart.id img(src=''+smart.photo height='200px' width='200px') div= "Производитель: " + smart.prod div='Модель: ' + smart.name