I'm using a dynamic media source based on the migxResourceMediaPath snippet with Content Blocks. But there seems to be a problem with creation of the directories, like in
assets/images/resource/{id}
.
Error message I get inside Content Blocks is somthing like:
Uh oh, something went wrong uploading undefined: The specified directory is not a directory.: xx/xx/assets/images/resource/7/
So it's actually displaying the correct path, but did not create the directory.
However, when I use the media source with a standard image TV on the same resource, everything works fine - directory gets created, image uploaded successfully.
And now the image upload inside Content Blocks can upload files inside the already created directory. So it seems, creating the directory is the problem, when the snippet is called from inside Content Blocks.
Any ideas?