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

322
Vistas
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

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

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 .

over 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