s3 custom headers

Started by bradleyg4 replies14 views
bradleyg
#3
{
    "steps": {
        "store": {
            "robot": "/s3/store",
            "key": "",
            "secret": "",
            "bucket": "",
            "headers": {
                "Content-Type": "${file.mime}",
                "Content-Disposition": "attachment",
                "filename": "${file.name}"
            }
        }
    }
}
bradleyg
#4

hey, so it looks like setting just the “content-disposition” to “attachement” worked as you cannot use variables here. i’m not sure this has any implications on the storage of the file.

Felix_Geisendorfer
#5

No, S3 does not look at those headers for storage. Only X-AMZ- headers are evaluated for that purpose (AFAIK). We’ll add support for variables in the headers in the future.