cordova - AWS S3 signed url encode resulting "SignatureDoesNotMatch" -


i using cordova file transfer dowload file aws s3 using signed url, since cordova filetransfer encodes uri, "%" in signature converted "%25", thus, results in signature mismatch

try setting options so:

options = {             filekey: 'file',             filename: name,             chunkedmode: false,             mimetype: 'audio/3gpp',             httpmethod: 'put',             // important!             headers: {                 'content-type': 'audio/3gpp' // < set explicitly otherwise becomes multipart/form-data won't work s3             },             encodeuri: false // < stops encoding file transfer logic         } 

took me many painful hours getting pre signed puts working cordova / s3. goodluck.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -