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

170
Vistas
Upload file onto AWS S3 with specific path in NodeJS

I've been taking a crack at uploading files onto S3 via NodeJS, but with a specific path where they have to be stored.

return s3fsImpl.writeFile(file_name.originalFilename,stream).then(function() {
     fs.unlink(file_name.path, function(err) {
         if (err) {
                console.error(err);
         } else {  /** sucessess **/  }

I'm not sure how do I give a path like /project_name/file_name. I have been following this tutorial

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

0

In this scenario your are using a stream as the target. When you created that stream you should have specified the path at that point.

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