{"action":"closed","issue":{"url":"https://api.github.com/repos/thoughtbot/paperclip/issues/1930","labels_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/1930/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/1930/comments","events_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/1930/events","html_url":"https://github.com/thoughtbot/paperclip/issues/1930","id":94313601,"number":1930,"title":"Paperclip 4.3.x: Saving new record with copy of attachment of existing record: Is a directory @ unlink_internal - /app/public","user":{"login":"fw42","id":2072686,"avatar_url":"https://avatars.githubusercontent.com/u/2072686?v=3","gravatar_id":"","url":"https://api.github.com/users/fw42","html_url":"https://github.com/fw42","followers_url":"https://api.github.com/users/fw42/followers","following_url":"https://api.github.com/users/fw42/following{/other_user}","gists_url":"https://api.github.com/users/fw42/gists{/gist_id}","starred_url":"https://api.github.com/users/fw42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fw42/subscriptions","organizations_url":"https://api.github.com/users/fw42/orgs","repos_url":"https://api.github.com/users/fw42/repos","events_url":"https://api.github.com/users/fw42/events{/privacy}","received_events_url":"https://api.github.com/users/fw42/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-10T14:10:49Z","updated_at":"2015-07-10T14:34:20Z","closed_at":"2015-07-10T14:34:20Z","body":"Hey,\r\n\r\nI'm running into a weird bug that I don't understand.\r\n\r\nI have a Rails (4.2.3) application and a model that has a `has_attached_file :image`.\r\n\r\nNow I want to copy an attachment from one record of that model to another, basically just doing\r\n```ruby\r\nthing.image = other_thing.image\r\nthing.save!\r\n```\r\n\r\nOn Paperclip 4.2.3, this works fine. When upgrading to Paperclip 4.3.0, I get the following exception:\r\n```\r\n[paperclip] deleting /app/public\r\n...\r\nErrno::EISDIR (Is a directory @ unlink_internal - /app/public):\r\n...\r\n```\r\n\r\nAny ideas? I can try to come up with a full example of how to reproduce this if necessary."}}