Copied to clipboard

Flag this post as spam?

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


  • Scott Babcock 12 posts 92 karma points
    Oct 26, 2018 @ 20:52
    Scott Babcock
    0

    Media Picker doesn't link to folder

    When specifying a datasource that is a folder the media items are uploaded but the folder containing those media items is not linked to the media picker property.

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Oct 29, 2018 @ 07:10
    Richard Soeteman
    0

    Hi,

    Not sure what you mean. If you select a picker field you can click advances settings in CMSIMport and that can be anything.

    Best,

    Richard

  • Scott Babcock 12 posts 92 karma points
    Oct 29, 2018 @ 15:05
    Scott Babcock
    0

    Sorry for not being more specific.

    I am importing a CSV. There is a "photos" field that is a relative path to a folder in the root of the site ("/Photos/item1"). The folder /Photos/item1 contains 4 images. In my import definition I associate the "photos" field with a media picker property that allows selecting a folder. When I run the import a content node is created and the 4 images are added to the site as media in the same structure (/Photos/item1) but the media picker property is not linked with the newly created media folder /Photos/item1.

    Is there something I'm missing? Let me know if I can give any more information to clarify the issue I'm having.

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Oct 29, 2018 @ 15:13
    Richard Soeteman
    0

    Hi Scott,

    I assume CMSImport did link to every image inside the folder? CMSImport itself doesn't see folders. Only files and because of the structure it can determine where to store files.

    Best,

    Richard

  • Scott Babcock 12 posts 92 karma points
    Oct 29, 2018 @ 15:21
    Scott Babcock
    0

    It did not link to every image inside the folder.

    The media picker is configured to allow picking of multiple items, allow folder selection, and has a starting node of "/Photos" (based on my previous post example).

    If I change the CSV to point to one specific image the import does link the everything as expected.

    Also, if I manually link images and then rerun the import, telling it to update records, it clears the image associations. So it is seeing that it needs to update the property but can't see anything to link.

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Oct 29, 2018 @ 15:24
    Richard Soeteman
    0

    Ok will check later, What happens when you comma separate the files does that work?

  • Scott Babcock 12 posts 92 karma points
    Oct 29, 2018 @ 16:19
    Scott Babcock
    0

    Yes, linking to a comma separated list of files works.

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Oct 29, 2018 @ 16:30
    Richard Soeteman
    0

    Ok, I think that the media import should check files and csv them when in a folder. I will check tomorrow and add a link to a fix here.

    Best,

    Richard

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Oct 30, 2018 @ 10:12
    Richard Soeteman
    0

    Hi,

    I have fixed the issue. It was related to the UDI of folders. It got stored for individual media items, not for folders so in that case no data was stored on content. It's fixed now. If you install the patch below and run the import again it should link to your folder. https://www.dropbox.com/s/0uwt2u4yfpshptz/cmsimport37_6.zip?dl=0 Best,

    Richard

  • Scott Babcock 12 posts 92 karma points
    Oct 30, 2018 @ 14:18
    Scott Babcock
    0

    It did not seem to work.

    I replaced the DLLs in the bin and all other files in /Umbraco/Plugins/cmsimport. When I reran the import I had the same results, there is no linked media and it unlinks any manually linked media.

    Did I not apply the patch correctly? Maybe a total uninstall/reinstall is needed?

    If it matters, I added the CmsImport package via NuGet not Umbraco's package manager.

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Oct 30, 2018 @ 14:25
    Richard Soeteman
    0

    Best to run the package installer indeed.

  • Scott Babcock 12 posts 92 karma points
    Oct 30, 2018 @ 18:08
    Scott Babcock
    0

    Uninstalled CmsImport NuGet package and then used the package installer with the ZIP file you linked to. Ran the import again with the same result, no linked media.

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Oct 31, 2018 @ 08:10
    Richard Soeteman
    0

    Hi Scott,

    Really sorry, made a beginner mistake yesterday. Copied the wrong file in. So got the same result. Below the new file. I have tested the file below against a clean environment and media folders got linked.

    Sorry for the hassle. You can just copy the dll's.

    Best,

    Richard

  • Scott Babcock 12 posts 92 karma points
    Oct 31, 2018 @ 13:39
    Scott Babcock
    0

    Not a problem, glad to know I'm not doing something wrong to make it not work.

    Would you be able to provide another Dropbox link? The old one seems to no longer be working.

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Oct 31, 2018 @ 13:52
    Richard Soeteman
    100

    Ah sorry forgot, yes sure. Below it is

    https://www.dropbox.com/s/qjfoxlft118alu5/cmsimport37_6.zip?dl=0

    Best,

    Richard

  • Scott Babcock 12 posts 92 karma points
    Oct 31, 2018 @ 19:56
    Scott Babcock
    0

    That work. I had to add it via the Umbraco package manager and it's linking to the media folders now.

    Thank you for all your help. I really appreciate you taking the time and how quick you always responded to my posts.

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Nov 01, 2018 @ 07:39
    Richard Soeteman
    0

    Great to hear.

Please Sign in or register to post replies

Write your reply to:

Draft