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

157
Visualizações
All files do not get uploaded while uploading multiple files to s3 bucket

Here's my code for uploading multiple files to s3 bucket using rn-fetch-blob:

pictureUris.map(async (picture, index) => {
            s3.getSignedUrl(
              'putObject',
              {
                Key: 'key',
                Bucket: 'bucket',
                Tagging: 'tag',
              },
              async (err, url) => {
                if (url) {
                  RNFetchBlob.fetch(
                    'PUT',
                    url,
                    {
                      'x-amz-tagging': 'tag',
                    },
                    RNFetchBlob.wrap(`path-to-file`),
                  )
                    .then((res) => {               
                    })
                    .catch((uploadErr) => {
  
                    });
                }
                if (err) {
                  console.log('SIGNED URL ERR', err);
                  
                }
              },
            );
          })

When I try to upload, say, 20 files, only 17 are visible in the bucket. The code never hits the catch block and yet some files do not get uploaded.

(PS: I've observed that if the upload count is 30, 26 files show up in the bucket. If the upload count is 20, 17 files show up. And, if the upload count is 10, 9 files show up. I've observed this repeatedly, but it could very well be a coincidence.)

about 4 years ago · Juan Pablo Isaza
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