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 > Variantdata and the hierarchical import is working well.The issue is
Producthas 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.jpgand that gets imported into the selected folder in Umbraco asProductImage.jpgrather than the expectedCategory/SubCategory/ProductImage.jpgWe've checked the settings in the appsettings.json and
MediaImportKeepFolderStructureis set totrueso I'd have thought it would maintain that structure. Are we missing something?We're running Umbaco
v13.4.1CMSImportv13.1.3Thanks 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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.