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

340
Views
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 answers
Answer question

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 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!