{"action":"opened","issue":{"url":"https://api.github.com/repos/TTLabs/EvaporateJS/issues/145","repository_url":"https://api.github.com/repos/TTLabs/EvaporateJS","labels_url":"https://api.github.com/repos/TTLabs/EvaporateJS/issues/145/labels{/name}","comments_url":"https://api.github.com/repos/TTLabs/EvaporateJS/issues/145/comments","events_url":"https://api.github.com/repos/TTLabs/EvaporateJS/issues/145/events","html_url":"https://github.com/TTLabs/EvaporateJS/issues/145","id":153456059,"number":145,"title":"AWS Policy support","user":{"login":"DrySs","id":230791,"avatar_url":"https://avatars.githubusercontent.com/u/230791?v=3","gravatar_id":"","url":"https://api.github.com/users/DrySs","html_url":"https://github.com/DrySs","followers_url":"https://api.github.com/users/DrySs/followers","following_url":"https://api.github.com/users/DrySs/following{/other_user}","gists_url":"https://api.github.com/users/DrySs/gists{/gist_id}","starred_url":"https://api.github.com/users/DrySs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrySs/subscriptions","organizations_url":"https://api.github.com/users/DrySs/orgs","repos_url":"https://api.github.com/users/DrySs/repos","events_url":"https://api.github.com/users/DrySs/events{/privacy}","received_events_url":"https://api.github.com/users/DrySs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-06T13:54:42Z","updated_at":"2016-05-06T13:54:42Z","closed_at":null,"body":"Hi there,\r\n\r\nWe are trying to move from jQuery.fileUpload() to EvaporateJS in order to handle multi-part transfert.\r\n\r\nBut we cannot find anywhere to custom our policy.\r\n\r\nIndeed, we were generated (using server PHP script) and upload policy, with an expiration rights and some conditions (bucket to write, acl, key filename):\r\n\r\n```\r\n    function getUploadPolicy($key)\r\n    {\r\n        $policy = json_encode(array(\r\n            'expiration' => date('Y-m-d\\TG:i:s\\Z', strtotime('+6 hours')),\r\n            'conditions' => array(\r\n                array('bucket' => $this->bucket),\r\n                array('acl' => 'private'),\r\n                array('starts-with', '$key', $key),\r\n                array('success_action_status' => '201')\r\n            )\r\n        ));\r\n        return base64_encode($policy);\r\n    }\r\n```\r\n\r\nHow to proceed to implement this restrictions?\r\n\r\nThanks for your help :)\r\nPhilippe"}}