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

101
Views
Express js :Handle callback in rest api

Here is what i am trying to achieve with rest API.

1.User uploads a file to AWS s3 (>20Mb).

function(req,res){
      //initiate multipart upload.with asynchronous request
      s3.multipartUpload(function(err,success){
            //when upload complete do step 2
         });
      res.send({
         'status':'pending',
         'message':'Upload is added to queue '
        });
   }

2.After the successful upload user need to add some more information about the uploaded file(Load next page to enter some meta data which will initiate another REST API).

Since the file upload is completely asynchronous how can i load the meta data screen only after the file upload??

about 4 years ago · Santiago Trujillo
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!