Is it possible to organize assets to {slug} folders?

I've love to be able to upload assets and have them automatically create folders based on the entry slug. As an example: Upload an image to the albums/foo-bar entry, and have the image end up in albums/foo-bar folder in my asset container.

I tried adding {slug} to the folder property of the field definition but, as you may have guessed, it just created a folder called "{slug}".

field:
  type: assets
  container: media
  folder: albums/{slug}
  ...

Is something like this possible?

>>>>>>> Unanswered <<<<<<<
2 Replies
3 Followers