I am trying to create a signed s3 url using NodeJS and Knox.
var knox = require('knox');
var s3Client = knox.createClient({
key: 'XXX',
secret: 'XXX',
bucket: 'XXX'
});
var expires = new Date();
expires.setMinutes(expires.getMinutes() + 30);
var url = s3Client.signedUrl(filename, expires);
This produces a working signed URL which is great, but I need to add the response-content-disposition
header to force downloads.
Does anyone know how this could be achieved with Knox or any other NodeJS S3 plugin?