I'm building a gallery system and on the entry page I have fields for gallery category (category field) as well as gallery photos (assets field). When creating this entry, I would like to upload the assets field to something like:
images/galleries/category/slug
However, because the category is still being defined in the same entry as the assets are being uploaded, my images aren't put into a folder based on the category.
Is what I'm trying to do possible? What's the best way to approach it? I'm currently using this for my assets file path:
images/galleries/{galleryCategory.first.slug}/{slug}