I'm working on a site that will have lots of content. Our customer now asked to have their images upload into a different subfolder, by date. I can get it done in a "normal" Assets field, but in a Matrix I get an error: Could not resolve the subpath “{postDate|date("d-m-Y")}”, with postDate being the name of the generated folder. I did the exact same thing in a "regular" Assets field and that does its job as it should.

Can anyone tell me what I'm doing wrong?


1 Answer 1


You're probably looking for:


See the note about dynamic subfolders on an Assets field inside of Matrix here: https://craftcms.com/docs/assets-fields#dynamic-subfolder-paths

  • That's it! I thought it was something like that, but yesterday was a busy and tiring day, so my brains where quite fried at the end of the day and I couldn't get my mind wrapped around the problem :-). Thanks for the help!!
    – Jan
    Oct 28, 2016 at 10:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.