I don't know why this ERROR occurs!
In second scenario it loads page, but don't loads IMAGE!
i use Node.js and template-engine of ejs.
projects strategy:
in home.ejs:
1)fill input.
2)if character be more than 3, it return req.body . it works fine. ok!

3)but if characters be less than 4, it comeback to previous home.ejs page.
but the error occurs in this stage!
it comes back to home.ejs, but do not shows IMAGE.
i don't why!
my home.ejs:
<h1> demo home page:</h1>
<img style='width:80px' src="JS.jpg" alt="JS.jpg">
<form action="/home/put?_method=put" method="post">
<input type="text" name="NAME" >
<button type="submit">SEND</button>
</form>
codes in server.js:
app.get('/',(req,res)=>{
res.render('home.ejs');
});
app.put('/home/put',(req,res)=>{
let nam = req.body.NAME;
if(nam.length < 4) return res.render('home.ejs');
res.send(req.body);
});
