{"action":"created","issue":{"url":"https://api.github.com/repos/refile/refile/issues/393","repository_url":"https://api.github.com/repos/refile/refile","labels_url":"https://api.github.com/repos/refile/refile/issues/393/labels{/name}","comments_url":"https://api.github.com/repos/refile/refile/issues/393/comments","events_url":"https://api.github.com/repos/refile/refile/issues/393/events","html_url":"https://github.com/refile/refile/issues/393","id":116334640,"number":393,"title":"refile s3 attachment_url with special characters 403 forbidden","user":{"login":"duncangarde","id":5747810,"avatar_url":"https://avatars.githubusercontent.com/u/5747810?v=3","gravatar_id":"","url":"https://api.github.com/users/duncangarde","html_url":"https://github.com/duncangarde","followers_url":"https://api.github.com/users/duncangarde/followers","following_url":"https://api.github.com/users/duncangarde/following{/other_user}","gists_url":"https://api.github.com/users/duncangarde/gists{/gist_id}","starred_url":"https://api.github.com/users/duncangarde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncangarde/subscriptions","organizations_url":"https://api.github.com/users/duncangarde/orgs","repos_url":"https://api.github.com/users/duncangarde/repos","events_url":"https://api.github.com/users/duncangarde/events{/privacy}","received_events_url":"https://api.github.com/users/duncangarde/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-11T13:19:05Z","updated_at":"2016-02-19T11:28:06Z","closed_at":null,"body":"Refile and attachment_url is working perfectly in my project for filenames without special characters, but when encoded characters are introduced the attachment_url link gives 403 forbidden error. \r\n\r\n<b>link that works:</b>\r\n.../attachments/9f26ce39cd5df338a11c03c6d1e560feae4d3b3e/store/151c39067d215aaeda4cdad3e5341fc76c1580a011e8ef70ca7fb8a4d2a5/Events+Flix+bs+conflicted+copy+2014-07-15.xlsx\r\n\r\n<b>link that doesn't work:</b>\r\n..../attachments/53e36a73afff91581f02d482485de5584aff3ab0/store/469e013ec7e6fe5facf0df554f2b6c4c1a0939ce8d10ed6e90412c0a54f6/Events+<b>%28</b>Flix+b<b>%27s</b>+conflicted+copy+2014-07-15<b>%29</b>.xlsx\r\n\r\nif I take out the encoded characters then it works again. Any Clues?\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/refile/refile/issues/comments/186178319","html_url":"https://github.com/refile/refile/issues/393#issuecomment-186178319","issue_url":"https://api.github.com/repos/refile/refile/issues/393","id":186178319,"user":{"login":"Eric-Guo","id":1131536,"avatar_url":"https://avatars.githubusercontent.com/u/1131536?v=3","gravatar_id":"","url":"https://api.github.com/users/Eric-Guo","html_url":"https://github.com/Eric-Guo","followers_url":"https://api.github.com/users/Eric-Guo/followers","following_url":"https://api.github.com/users/Eric-Guo/following{/other_user}","gists_url":"https://api.github.com/users/Eric-Guo/gists{/gist_id}","starred_url":"https://api.github.com/users/Eric-Guo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eric-Guo/subscriptions","organizations_url":"https://api.github.com/users/Eric-Guo/orgs","repos_url":"https://api.github.com/users/Eric-Guo/repos","events_url":"https://api.github.com/users/Eric-Guo/events{/privacy}","received_events_url":"https://api.github.com/users/Eric-Guo/received_events","type":"User","site_admin":false},"created_at":"2016-02-19T11:28:06Z","updated_at":"2016-02-19T11:28:06Z","body":"@RealSilo google `rails parameterize js equavalent` and [first](http://stackoverflow.com/questions/24849667/jquery-parameterize-string-like-parameterize-method-in-rails) and [second](https://gist.github.com/pjambet/3710461) solution not working?"}}