Title says everything. Here is my code;
I'm using node-formidable for files.
form.on("end",function(field, file){
params.Body = fs.createReadStream(params.filePath)
delete params.filePath;
S3.getSignedUrl('putObject',params, function(err, url) {
if(err){console.log(err);}
console.log(url);
});
})
After successful upload, url variable returns s3 url, something like this;
But still getting SignatureDoesNotMatch error. In description says
The request signature we calculated does not match the signature you provided. Check your key and signing method.
Here is my parameters
params = {
Bucket:"bucketname",
Key: file.name,
ACL: 'public-read'
}
What am i missing?