Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tim 174 posts 398 karma points
    Sep 20, 2024 @ 15:27
    Tim
    0

    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 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?

    We're running Umbaco v13.4.1 CMSImport v13.1.3

    Thanks in advance.

  • Tim 174 posts 398 karma points
    Sep 21, 2024 @ 13:31
    Tim
    100

    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 🎉

Please Sign in or register to post replies

Write your reply to:

Draft