Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

179
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda