I'm importing a CSV of nodes for my site and all the fields map fine from the CSV file to the content types' fields.

The only issue i'm having is with the images. I've FTPed a load of images up to the site into the directory example.com/mgr/sites/default/files/Images_of/example.jpg

Now i want to put a value into the CSV to tell the new nodes to have that particular image in the node.

I've tried putting the 'example.jpg' into the csv and setting the default folder as everything up to that point.

I've tried putting '/mgr/sites/default/files/Images_of/example.jpg' into the CSV.

Either way when i import the file all the nodes are created but the image field is just empty, any advice please?

Comments

rahu231086’s picture

hello there,

For this you need to user filter function named FeedImportFilter::saveImage or FeedImportFilter::saveFile

to attached files to node.

thanks

Sorin Sarca’s picture

Status: Active » Closed (outdated)