Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

92
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda