Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
Not sure what you mean. If you select a picker field you can click advances settings in CMSIMport and that can be anything.
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.
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.
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.
Ok will check later, What happens when you comma separate the files does that work?
Yes, linking to a comma separated list of files works.
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.
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.
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.
Best to run the package installer indeed.
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.
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.
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.
Ah sorry forgot, yes sure. Below it is
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.
Great to hear.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted