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

symfony - TEST environment only: The database schema is not in sync with the current mapping file -

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -