Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

150
Views
nodejs express.js cannot get /1.jpg error

json worked (https://virus.has-no-bra.in/5aZ8fM0k5.png) but cannot get image (https://virus.has-no-bra.in/5aZ90HlbO.png) and i have 37.jpg file (https://virus.has-no-bra.in/5aZ9l_gt7.png)

app.get('/', function(req, res) {

  list(`./img`,(images)=>{
  if(images.error) throw images.error;
  var floppa = images.files
  let random = Math.floor((Math.random() * floppa.length))

  var file = `domain${floppa[random]}`
  res.json(
    {
      image: file
    }
    )
});
})
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!