{"action":"created","issue":{"url":"https://api.github.com/repos/thoughtbot/paperclip/issues/1210","labels_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/1210/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/1210/comments","events_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/1210/events","html_url":"https://github.com/thoughtbot/paperclip/issues/1210","id":12460290,"number":1210,"title":"invalid file path","user":{"login":"illnino","id":1298646,"avatar_url":"https://avatars.githubusercontent.com/u/1298646?v=3","gravatar_id":"","url":"https://api.github.com/users/illnino","html_url":"https://github.com/illnino","followers_url":"https://api.github.com/users/illnino/followers","following_url":"https://api.github.com/users/illnino/following{/other_user}","gists_url":"https://api.github.com/users/illnino/gists{/gist_id}","starred_url":"https://api.github.com/users/illnino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/illnino/subscriptions","organizations_url":"https://api.github.com/users/illnino/orgs","repos_url":"https://api.github.com/users/illnino/repos","events_url":"https://api.github.com/users/illnino/events{/privacy}","received_events_url":"https://api.github.com/users/illnino/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2013-03-26T17:28:31Z","updated_at":"2015-03-10T06:08:39Z","closed_at":null,"body":"Hi, there\r\n\r\nI am customizing spree, which uses paperclip for uploading images. \r\n\r\nIt did successfully upload images to a third party storage, but not s3. However, the path isnt valid. It will always comes with localhost:3000/assests/ as prefix.\r\n\r\nI have create a spree.rb in config/initializers/spree.rb\r\n\r\n<pre lang=\"ruby\"><code>\r\n\r\nSpree.config do |config|\r\n  config.attachment_url = \":my_url\"\r\nend\r\n\r\nPaperclip.interpolates(:my_url) do |attachment, style|\r\n  \"http://path/to/third/party/storage/test/:attachment/:id/:style/:filename\"\r\nend\r\n</code>\r\n</pre>\r\n\r\nI have aslo specified path and url in model/image_decorator.rb\r\n<pre lang=\"ruby\"><code>\r\n      :path => \"test/:attachment/:id/:style/:filename\",\r\n      :url => \"test/:attachment/:id/:style/:filename\",\r\n</code>\r\n</pre>\r\n\r\nIs there anyone could give me some help?"},"comment":{"url":"https://api.github.com/repos/thoughtbot/paperclip/issues/comments/78000909","html_url":"https://github.com/thoughtbot/paperclip/issues/1210#issuecomment-78000909","issue_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/1210","id":78000909,"user":{"login":"illnino","id":1298646,"avatar_url":"https://avatars.githubusercontent.com/u/1298646?v=3","gravatar_id":"","url":"https://api.github.com/users/illnino","html_url":"https://github.com/illnino","followers_url":"https://api.github.com/users/illnino/followers","following_url":"https://api.github.com/users/illnino/following{/other_user}","gists_url":"https://api.github.com/users/illnino/gists{/gist_id}","starred_url":"https://api.github.com/users/illnino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/illnino/subscriptions","organizations_url":"https://api.github.com/users/illnino/orgs","repos_url":"https://api.github.com/users/illnino/repos","events_url":"https://api.github.com/users/illnino/events{/privacy}","received_events_url":"https://api.github.com/users/illnino/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T06:08:39Z","updated_at":"2015-03-10T06:08:39Z","body":"hi Jon\n\n\n\n\nit has been a long time. I am not using paperclip now. cant let you know.\n\n\n\n\nnino\n\n\n\n—\nSent from Mailbox\n\nOn Tue, Mar 10, 2015 at 5:44 AM, Jon Moss <notifications@github.com>\nwrote:\n\n> Hi @illnino ! Is this still an issue for you in Paperclip; I know this issue is from approximately 2 years ago. If it is still an issue, can you please provide the code that's causing you the error? Thanks!\n> ---\n> Reply to this email directly or view it on GitHub:\n> https://github.com/thoughtbot/paperclip/issues/1210#issuecomment-77949795"}}