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

166
Views
AWS s3 file upload in express js: whats the difference between upload vs multipart upload

I am trying to upload a file to AWS s3 using express js,instead of putObject i am using upload http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#upload-property function

       var options ={
            partSize: 5242880, queueSize: 1
        };
        console.time('Uploadtime');
        s3.upload(params,options,function(err, data) {
            if (err) console.log(err, err.stack); // an error occurred
            else     {
                console.timeEnd('Uploadtime');
                console.log("uploaded",data);
                res.json({
                    'status':'Uploaded'
                });
            }           // successful response
        });

I think upload and multipart upload do the same thing(am i correct??) My question is do i need to use multi part upload or stay with upload method.

From the docs i can't get the similarities between upload and multipartupload

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

upload and multipart upload perform the same action but there are the few advantage of multipart upload

  1. You can upload parts in parallel to improve throughput.

  2. Smaller part size minimizes the impact of restarting a failed upload due to a network error.

  3. You can upload object parts over time. Once you initiate a multipart upload

  4. there is no expiry; you must explicitly complete or abort the multipart upload.

  5. You can upload an object as you are creating it.

So you can decide which one you should go with according to your need , multipart is recommended when the object you are uploading is big in size .

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!