statamic / ideas

💡Discussions on ideas and feature requests for Statamic
https://statamic.dev
31 stars 1 forks source link

Dynamic Asset File Path #901

Closed schwartzmj closed 1 year ago

schwartzmj commented 1 year ago

I'm looking to save certain uploaded files into a dynamic path, probably WordPress style e.g. /{currentYear}/{currentMonth}/filename.pdf or even /{taxonomy-slug}/filename.pdf.

I've tested listening for various Entry and Asset events, but I'm not finding a way to do it this way.

I propose allowing us to use Antlers to set a dynamic filepath for an Asset field, similar to how Titles and Routes work when setting up a collection.

jasonvarga commented 1 year ago

Duplicate of #725