{"action":"closed","issue":{"url":"https://api.github.com/repos/CulturalMe/meteor-slingshot/issues/97","labels_url":"https://api.github.com/repos/CulturalMe/meteor-slingshot/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/CulturalMe/meteor-slingshot/issues/97/comments","events_url":"https://api.github.com/repos/CulturalMe/meteor-slingshot/issues/97/events","html_url":"https://github.com/CulturalMe/meteor-slingshot/issues/97","id":76074455,"number":97,"title":"File name is not customizable with folder","user":{"login":"aladine","id":287410,"avatar_url":"https://avatars.githubusercontent.com/u/287410?v=3","gravatar_id":"","url":"https://api.github.com/users/aladine","html_url":"https://github.com/aladine","followers_url":"https://api.github.com/users/aladine/followers","following_url":"https://api.github.com/users/aladine/following{/other_user}","gists_url":"https://api.github.com/users/aladine/gists{/gist_id}","starred_url":"https://api.github.com/users/aladine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aladine/subscriptions","organizations_url":"https://api.github.com/users/aladine/orgs","repos_url":"https://api.github.com/users/aladine/repos","events_url":"https://api.github.com/users/aladine/events{/privacy}","received_events_url":"https://api.github.com/users/aladine/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-13T18:15:29Z","updated_at":"2015-05-16T08:40:32Z","closed_at":"2015-05-16T08:40:32Z","body":"I want to upload files to a specific folder in AWS /img/items/...\r\nSo I add configuration like this: \r\n```\r\nSlingshot.createDirective(\"myFileUploads\", Slingshot.S3Storage, {\r\n....\r\n  key: function (file) {\r\n    var ext = file.name.split('.').pop();\r\n    return '/img/items/' + Random.id()+'.'+ext ;\r\n  }\r\n});\r\n```\r\nAt the end, it failed. I guess there is some problem with encoding as \"%2Fimg%2Fitems...\" appeared in POST request. "}}