{"action":"created","issue":{"url":"https://api.github.com/repos/verbb/feed-me/issues/278","repository_url":"https://api.github.com/repos/verbb/feed-me","labels_url":"https://api.github.com/repos/verbb/feed-me/issues/278/labels{/name}","comments_url":"https://api.github.com/repos/verbb/feed-me/issues/278/comments","events_url":"https://api.github.com/repos/verbb/feed-me/issues/278/events","html_url":"https://github.com/verbb/feed-me/issues/278","id":296922479,"number":278,"title":"Can't dynamically create asset subfolders based on entry fields","user":{"login":"parkerpearson","id":13319923,"avatar_url":"https://avatars1.githubusercontent.com/u/13319923?v=4","gravatar_id":"","url":"https://api.github.com/users/parkerpearson","html_url":"https://github.com/parkerpearson","followers_url":"https://api.github.com/users/parkerpearson/followers","following_url":"https://api.github.com/users/parkerpearson/following{/other_user}","gists_url":"https://api.github.com/users/parkerpearson/gists{/gist_id}","starred_url":"https://api.github.com/users/parkerpearson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parkerpearson/subscriptions","organizations_url":"https://api.github.com/users/parkerpearson/orgs","repos_url":"https://api.github.com/users/parkerpearson/repos","events_url":"https://api.github.com/users/parkerpearson/events{/privacy}","received_events_url":"https://api.github.com/users/parkerpearson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-13T23:23:41Z","updated_at":"2018-02-13T23:43:14Z","closed_at":null,"author_association":"NONE","body":"### Description\r\nI am trying to import entries which contain asset fields that restrict uploads to a single folder. This folder is based on the entry's parent and a custom version field, like so:\r\n\r\n<img width=\"543\" alt=\"screen shot 2018-02-13 at 4 15 29 pm\" src=\"https://user-images.githubusercontent.com/13319923/36179377-3d325986-10d9-11e8-9395-b001ec3c1d96.png\">\r\n\r\nI then try to import a .json file which points this field to a url and is set to download the asset from there. When I try to run an import I get a \"Could not resolve the subpath\" error:\r\n\r\n<img width=\"481\" alt=\"screen shot 2018-02-13 at 4 20 18 pm\" src=\"https://user-images.githubusercontent.com/13319923/36179528-d95825ca-10d9-11e8-9538-9c083e60768e.png\">\r\n\r\nIf I set the upload folder to be just \"{parent.slug}\", the folder is created correctly and everything works. This leads me to believe there may be an issue with using the custom \"version\" field in the path. If I manually add an asset to an entry it has no problem creating the full \"{parent.slug}/{version}\" path.\r\n\r\n### Steps to reproduce\r\n\r\n1. Set up an asset field that restricts uploads to a single, dynamically created, upload destination.\r\n2. Import a feed that is set to create an asset from a url.\r\n\r\n### Additional info\r\n\r\n- Plugin version: 2.0.11\r\n- Craft version: 2.6.3005"},"comment":{"url":"https://api.github.com/repos/verbb/feed-me/issues/comments/365444273","html_url":"https://github.com/verbb/feed-me/issues/278#issuecomment-365444273","issue_url":"https://api.github.com/repos/verbb/feed-me/issues/278","id":365444273,"user":{"login":"parkerpearson","id":13319923,"avatar_url":"https://avatars1.githubusercontent.com/u/13319923?v=4","gravatar_id":"","url":"https://api.github.com/users/parkerpearson","html_url":"https://github.com/parkerpearson","followers_url":"https://api.github.com/users/parkerpearson/followers","following_url":"https://api.github.com/users/parkerpearson/following{/other_user}","gists_url":"https://api.github.com/users/parkerpearson/gists{/gist_id}","starred_url":"https://api.github.com/users/parkerpearson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parkerpearson/subscriptions","organizations_url":"https://api.github.com/users/parkerpearson/orgs","repos_url":"https://api.github.com/users/parkerpearson/repos","events_url":"https://api.github.com/users/parkerpearson/events{/privacy}","received_events_url":"https://api.github.com/users/parkerpearson/received_events","type":"User","site_admin":false},"created_at":"2018-02-13T23:43:14Z","updated_at":"2018-02-13T23:43:14Z","author_association":"NONE","body":"Okay, I appreciate you looking into it. FWIW I am running into a similar issue with a matrix field that has an asset as one of it's subfields as well.\r\n\r\nLet me know if you'd like the stack trace from running the import in debug mode."}}
{"actor":{"display_login":"parkerpearson"}}