{"action":"created","issue":{"url":"https://api.github.com/repos/keystonejs/keystone/issues/1954","labels_url":"https://api.github.com/repos/keystonejs/keystone/issues/1954/labels{/name}","comments_url":"https://api.github.com/repos/keystonejs/keystone/issues/1954/comments","events_url":"https://api.github.com/repos/keystonejs/keystone/issues/1954/events","html_url":"https://github.com/keystonejs/keystone/issues/1954","id":121489786,"number":1954,"title":"Change Cloudinary upload folder before uploading ","user":{"login":"Benjamin23","id":10192598,"avatar_url":"https://avatars.githubusercontent.com/u/10192598?v=3","gravatar_id":"","url":"https://api.github.com/users/Benjamin23","html_url":"https://github.com/Benjamin23","followers_url":"https://api.github.com/users/Benjamin23/followers","following_url":"https://api.github.com/users/Benjamin23/following{/other_user}","gists_url":"https://api.github.com/users/Benjamin23/gists{/gist_id}","starred_url":"https://api.github.com/users/Benjamin23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Benjamin23/subscriptions","organizations_url":"https://api.github.com/users/Benjamin23/orgs","repos_url":"https://api.github.com/users/Benjamin23/repos","events_url":"https://api.github.com/users/Benjamin23/events{/privacy}","received_events_url":"https://api.github.com/users/Benjamin23/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-10T13:53:58Z","updated_at":"2015-12-10T16:20:57Z","closed_at":null,"body":"Hello, I was wondering if it is possible to change cloudinary folder option of the CloudinaryImageType  based on a field value or username. I know that the folder option can be set in the Model file, but I need to set the folder option based on some other parameter before uploading. "},"comment":{"url":"https://api.github.com/repos/keystonejs/keystone/issues/comments/163675686","html_url":"https://github.com/keystonejs/keystone/issues/1954#issuecomment-163675686","issue_url":"https://api.github.com/repos/keystonejs/keystone/issues/1954","id":163675686,"user":{"login":"megheaiulian","id":1788114,"avatar_url":"https://avatars.githubusercontent.com/u/1788114?v=3","gravatar_id":"","url":"https://api.github.com/users/megheaiulian","html_url":"https://github.com/megheaiulian","followers_url":"https://api.github.com/users/megheaiulian/followers","following_url":"https://api.github.com/users/megheaiulian/following{/other_user}","gists_url":"https://api.github.com/users/megheaiulian/gists{/gist_id}","starred_url":"https://api.github.com/users/megheaiulian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/megheaiulian/subscriptions","organizations_url":"https://api.github.com/users/megheaiulian/orgs","repos_url":"https://api.github.com/users/megheaiulian/repos","events_url":"https://api.github.com/users/megheaiulian/events{/privacy}","received_events_url":"https://api.github.com/users/megheaiulian/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T16:20:57Z","updated_at":"2015-12-10T16:20:57Z","body":"if you have a field called \"images\" you can do something like this:\r\n```\r\n//Cloudinary folder virtuals\r\nSchema.virtual('images.folder').get(function() { return 'some/other/path'; });\r\n```"}}