{"action":"created","issue":{"url":"https://api.github.com/repos/s3fs-fuse/s3fs-fuse/issues/298","labels_url":"https://api.github.com/repos/s3fs-fuse/s3fs-fuse/issues/298/labels{/name}","comments_url":"https://api.github.com/repos/s3fs-fuse/s3fs-fuse/issues/298/comments","events_url":"https://api.github.com/repos/s3fs-fuse/s3fs-fuse/issues/298/events","html_url":"https://github.com/s3fs-fuse/s3fs-fuse/issues/298","id":118400787,"number":298,"title":"Add custom metadata to upload","user":{"login":"JuanCaicedo","id":4341496,"avatar_url":"https://avatars.githubusercontent.com/u/4341496?v=3","gravatar_id":"","url":"https://api.github.com/users/JuanCaicedo","html_url":"https://github.com/JuanCaicedo","followers_url":"https://api.github.com/users/JuanCaicedo/followers","following_url":"https://api.github.com/users/JuanCaicedo/following{/other_user}","gists_url":"https://api.github.com/users/JuanCaicedo/gists{/gist_id}","starred_url":"https://api.github.com/users/JuanCaicedo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuanCaicedo/subscriptions","organizations_url":"https://api.github.com/users/JuanCaicedo/orgs","repos_url":"https://api.github.com/users/JuanCaicedo/repos","events_url":"https://api.github.com/users/JuanCaicedo/events{/privacy}","received_events_url":"https://api.github.com/users/JuanCaicedo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-23T15:08:26Z","updated_at":"2015-11-26T12:27:03Z","closed_at":"2015-11-26T12:27:03Z","body":"Not sure if this is something I can't find in the docs, or if it is a feature request.\r\n\r\nI'm currently trying to add a this line of metadata to all my files uploaded by s3fs:\r\n`Cache-Control: public, max-age=31536000`\r\n\r\nMy guess would be that there can be a config where you set this up, then [when s3fs creates a file object](https://github.com/s3fs-fuse/s3fs-fuse/blob/master/src/s3fs.cpp#L895), it could do a check for this config an conditionally add another metadata line. However, I'm not sure if this conditional would need to get added to other parts of the code as well."},"comment":{"url":"https://api.github.com/repos/s3fs-fuse/s3fs-fuse/issues/comments/159900503","html_url":"https://github.com/s3fs-fuse/s3fs-fuse/issues/298#issuecomment-159900503","issue_url":"https://api.github.com/repos/s3fs-fuse/s3fs-fuse/issues/298","id":159900503,"user":{"login":"ggtakec","id":3221882,"avatar_url":"https://avatars.githubusercontent.com/u/3221882?v=3","gravatar_id":"","url":"https://api.github.com/users/ggtakec","html_url":"https://github.com/ggtakec","followers_url":"https://api.github.com/users/ggtakec/followers","following_url":"https://api.github.com/users/ggtakec/following{/other_user}","gists_url":"https://api.github.com/users/ggtakec/gists{/gist_id}","starred_url":"https://api.github.com/users/ggtakec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggtakec/subscriptions","organizations_url":"https://api.github.com/users/ggtakec/orgs","repos_url":"https://api.github.com/users/ggtakec/repos","events_url":"https://api.github.com/users/ggtakec/events{/privacy}","received_events_url":"https://api.github.com/users/ggtakec/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T12:27:03Z","updated_at":"2015-11-26T12:27:03Z","body":"@JuanCaicedo I'm glad about your result by ahbe_conf.\r\ns3fs recognizes the value in line.\r\nThe value refers to all until the carriage return after the key(header name). And trailing spaces are removed.\r\nAnd I make new wiki page for FAQ(https://github.com/s3fs-fuse/s3fs-fuse/wiki/FAQ) which is copied from FAQ in \"Fuse Over Amazon\" wiki page(https://github.com/s3fs-fuse/s3fs-fuse/wiki/Fuse-Over-Amazon).\r\nIt is linked wiki top page(https://github.com/s3fs-fuse/s3fs-fuse/wiki), and I added about custom header(ahbe_conf) on it.\r\n\r\nI close this issue, and if you find a problem, please post new issue.\r\nRegards,"}}