{"action":"closed","issue":{"url":"https://api.github.com/repos/dwilkie/carrierwave_direct/issues/209","repository_url":"https://api.github.com/repos/dwilkie/carrierwave_direct","labels_url":"https://api.github.com/repos/dwilkie/carrierwave_direct/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/dwilkie/carrierwave_direct/issues/209/comments","events_url":"https://api.github.com/repos/dwilkie/carrierwave_direct/issues/209/events","html_url":"https://github.com/dwilkie/carrierwave_direct/issues/209","id":179963840,"number":209,"title":"Policy conditions not working","user":{"login":"ro-puente","id":1501188,"avatar_url":"https://avatars.githubusercontent.com/u/1501188?v=3","gravatar_id":"","url":"https://api.github.com/users/ro-puente","html_url":"https://github.com/ro-puente","followers_url":"https://api.github.com/users/ro-puente/followers","following_url":"https://api.github.com/users/ro-puente/following{/other_user}","gists_url":"https://api.github.com/users/ro-puente/gists{/gist_id}","starred_url":"https://api.github.com/users/ro-puente/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ro-puente/subscriptions","organizations_url":"https://api.github.com/users/ro-puente/orgs","repos_url":"https://api.github.com/users/ro-puente/repos","events_url":"https://api.github.com/users/ro-puente/events{/privacy}","received_events_url":"https://api.github.com/users/ro-puente/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-29T06:33:01Z","updated_at":"2016-10-06T20:28:57Z","closed_at":"2016-10-06T20:28:57Z","body":"I've been trying to send some extra inputs, along with my file, to S3, and I get this\r\n```\r\n<Error>\r\n  <Code>AccessDenied</Code> \r\n  <Message>Invalid according to Policy: Extra input fields: qqfilename</Message>\r\n  <RequestId>CB65CB11F63DA7CD</RequestId\r\n  <HostId>UDEz7F0ufJeWR2SPO/pLfjlPz5Y8o7i/vJhxM2LmIAH6wcDQDDRrl+lxylhBAu9KwX4vXdGQxNA=</HostId>\r\n</Error>\r\n```\r\n\r\nthough I'm configuring that param on my policy\r\n```\r\ndef new\r\n  @uploader = AttachmentUploader.new\r\n  @uploader.use_action_status = true\r\n  @uploader.success_action_status = '201'\r\n  @uploader.policy do |conditions|\r\n    conditions << [\"starts-with\", \"$qqfilename\", \"\"]\r\n  end\r\n  # this view exists on views/client/assets/new.json.jbuilder\r\n  respond_to :json \r\nend\r\n```\r\n\r\nThe params on my request payload are these:\r\n\r\n```\r\n------WebKitFormBoundaryZj5IYNgNtfnlkZUs\r\nContent-Disposition: form-data; name=\"key\"\r\n\r\nuploads/cea15cc6-5bff-46b5-840b-dfdfc9c4c438c/${filename}\r\n------WebKitFormBoundaryZj5IYNgNtfnlkZUs\r\nContent-Disposition: form-data; name=\"AWSAccessKeyId\"\r\n\r\nAKIAIE4TC4RQNHWMQWAS\r\n------WebKitFormBoundaryZj5IYNgNtfnlkZUs\r\nContent-Disposition: form-data; name=\"acl\"\r\n\r\npublic-read\r\n------WebKitFormBoundaryZj5IYNgNtfnlkZUs\r\nContent-Disposition: form-data; name=\"policy\"\r\n\r\neyJleHBpcmF0aW9uIjoiMjAxNi0wOS0yOVQxNToyODoxOC41OTZaIiwiY29uZGl0aW9ucyI6W1sic3RhcnRzLXdpdGgiLCIkdXRmOCIsIiJdLFsic3RhcnRzLXdpdGgiLCIka2V5IiwidXBsb2Fkcy9jZWExNWNjNi01YmZmLTQ2YjUtODQwYi1mZDNjOWM0YzQzOGMvIl0seyJidWNrZXQiOiJvbWVsZXRlIn0seyJhY2wiOiJwdWJsaWMtcmVhZCJ9LHsic3JUERWKDN9hY3Rpb25fc3RhdHVzIjoiMjAxIn0sWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsMSw1MjQyODgwXV19\r\n------WebKitFormBoundaryZj5IYNgNtfnlkZUs\r\nContent-Disposition: form-data; name=\"signature\"\r\n\r\nAOamiCFLivi/1WE3F4IH12lInm0=\r\n------WebKitFormBoundaryZj5IYNgNtfnlkZUs\r\nContent-Disposition: form-data; name=\"success_action_status\"\r\n\r\n201\r\n------WebKitFormBoundaryZj5IYNgNtfnlkZUs\r\nContent-Disposition: form-data; name=\"utf8\"\r\n\r\n\r\n------WebKitFormBoundaryZj5IYNgNtfnlkZUs\r\nContent-Disposition: form-data; name=\"qqfilename\"\r\n\r\nfarodev100x100.png\r\n------WebKitFormBoundaryZj5IYNgNtfnlkZUs\r\nContent-Disposition: form-data; name=\"qquuid\"\r\n\r\n4a69df0a-6acd-414e-94c5-1db5a4b7fc76\r\n------WebKitFormBoundaryZj5IYNgNtfnlkZUs\r\nContent-Disposition: form-data; name=\"qqtotalfilesize\"\r\n\r\n3564\r\n------WebKitFormBoundaryZj5IYNgNtfnlkZUs\r\nContent-Disposition: form-data; name=\"file\"; filename=\"100x100.png\"\r\nContent-Type: image/png\r\n\r\n\r\n------WebKitFormBoundaryZj5IYNgNtfnlkZUs--\r\n```\r\n\r\nAm I missing something here?"}}
{"actor":{"display_login":"ro-puente"}}