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

169
Views
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 answers
Answer question

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 Report
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!