We're importing a load of Category > Product > Variant data and the hierarchical import is working well.
The issue is Product has an image picker on it. We have the files on the disk and CMSImport imports the files as expected however it does not maintain the folder structure i.e. on the disk we have: /ProductImages/Category/SubCategory/ProductImage.jpg and that gets imported into the selected folder in Umbraco as ProductImage.jpg rather than the expected Category/SubCategory/ProductImage.jpg
We've checked the settings in the appsettings.json and MediaImportKeepFolderStructure is set to true so I'd have thought it would maintain that structure. Are we missing something?
For anyone else that comes across this in the future, the issue was caused because the logic expects the path to be separated by / where my paths were incorrect and using \ instead. Changing the value to / created the folder structure as expected 🎉
Keep folder structure for media items on import
We're importing a load of
Category > Product > Variant
data and the hierarchical import is working well.The issue is
Product
has an image picker on it. We have the files on the disk and CMSImport imports the files as expected however it does not maintain the folder structure i.e. on the disk we have:/ProductImages/Category/SubCategory/ProductImage.jpg
and that gets imported into the selected folder in Umbraco asProductImage.jpg
rather than the expectedCategory/SubCategory/ProductImage.jpg
We've checked the settings in the appsettings.json and
MediaImportKeepFolderStructure
is set totrue
so I'd have thought it would maintain that structure. Are we missing something?We're running Umbaco
v13.4.1
CMSImportv13.1.3
Thanks in advance.
For anyone else that comes across this in the future, the issue was caused because the logic expects the path to be separated by
/
where my paths were incorrect and using\
instead. Changing the value to/
created the folder structure as expected 🎉is working on a reply...