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

346
Visualizações
AWS S3 - Video upload fails - JavaScript

I'm using AWS JavaScript SDK in a Cordova application on Android and have set the configuration as below

AWS.config = new AWS.Config({
    region: Constants.region,
    httpOptions: {
        timeout: 1200000    //20 mins
    }
});

I'm able to upload images and text files of > 2MB size without issues. But the code always fails to upload video files of any size. Below are the error logs I'm getting

PUT https://s3.ap-south-1.amazonaws.com/my-s3-bucket/files/VID-20170127-WA0017.mp4 net::ERR_CONNECTION_RESET

PUT https://s3.ap-south-1.amazonaws.com/my-s3-bucket/files/VID-20170127-WA0017.mp4 net::ERR_CONNECTION_RESET

PUT https://s3.ap-south-1.amazonaws.com/my-s3-bucket/files/VID-20170127-WA0017.mp4 net::ERR_CONNECTION_RESET

PUT https://s3.ap-south-1.amazonaws.com/my-s3-bucket/files/VID-20170127-WA0017.mp4 net::ERR_CONNECTION_RESET

It seems that the connection is reset after about 45-50 seconds inspite of the 20 min. timeout configuration

about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Even though I am not sure about the reason why it happens, I have noticed that Android upload with https Url for large file fails with AWS S3. This has something to do with the https certificate of AWS because I haven't faced the issue with DigitialOcean Spaces.

So the solution here is trying uploading to non-https end-point.

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