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

90
Views
AWS S3- CloudFront upload through mobile app - Corrupted files

I've recently built a service to upload files directly to S3 with Cloudfront - SignedUrl using FileTransfer - Cordova. Everything looks fine, I get the following response:

{"BytesSent": -numOfBytes-, "responseCode": 200, "objectId":""}

but I can't access this file - can't read, change, download got failed. Probably the files are corrupted, Just weird. the upload code -

let uri = data['signed_request'];

const ft: TransferObject = this.transfer.create();

let options : FileUploadOptions = {
  fileKey: "file",
  fileName: fileName,
  mimeType: self.settings[kind].type,
  chunkedMode: false,
  httpMethod: 'PUT',
  headers: {
     'Content-Type': self.settings[kind].type,
     'X-Amz-Acl': 'public-read'
  }
}

ft.onProgress = function(progressEvent) {
  if (progressEvent.length) {

  } else {

  }
};
ft.upload(file, uri, options, true).then((data) => {
   resolve(data['readURL']);
}).catch((err) => {
   resolve("Could not upload file. => " + err);
});

What do you think could be wrong? - I can't see any reasonable reason and stuck on this for too long.. Thanks

about 4 years ago · Santiago Trujillo
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!