Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

124
Vistas
Expressjs static space in file name trailing slash

I use express to serve static files on local disk.

app.use('/media/', express.static(path.join(__dirname, 'media'), {redirect: false}))

And under media folder, I have a folder named image files. In that folder, I have a file called image.png.

When I use http://localhost:3000/media/image%20files/image.png in the address field of my browser, express always redirect the request to http://localhost:3000/media/image%20files/image.png/ that adding a trailing slash.

If I remove the space in the folder name, it serves the image file.

What I did wrong? Is this a bug?

Thanks,

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

To answer my own question so if anyone runs into the same issue they have a possible answer.

I cleared Chrome cache and the problem is gone.

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda