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

96
Views
AWS S3: carga de CloudFront a través de la aplicación móvil: archivos dañados

Recientemente construí un servicio para cargar archivos directamente a S3 con Cloudfront - SignedUrl usando FileTransfer - Cordova. Todo se ve bien, obtengo la siguiente respuesta:

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

pero no puedo acceder a este archivo - no puedo leer, cambiar, la descarga falló. Probablemente los archivos estén dañados, simplemente extraño. el código de carga -

 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); });

¿Qué crees que podría estar mal? - No puedo ver ninguna razón razonable y me he estancado en esto por mucho tiempo... Gracias.

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