Just a place to have a downloadable version without having to set up Git.

Comments

kapayne’s picture

This post was very timely - thanks for that! Unfortunately I couldn't get it to run but I may have misunderstood the purpose. I have a lot of free standing xml that I'm trying to import to nodes using xpath parser/feeds- seems to be working well but when I try to populate an image field the only way it works is if I manually hit the "upload" or "file attach" buttons. I was hoping that in the parser for the image field, I could specify an xpath to a file name (jpg), and as long as that jpg existed on the server in the "file_attach" folder it should attach it to the node. I'm getting this error message:
warning: implode() [function.implode]: Invalid arguments passed in C:\'my site'\includes\form.inc on line 843.
Am I off the mark?

nicolash’s picture

Ok, I've been using this to get images from an external site, using what filefield sources would do if you use the "Remote URL textfield" method.

I guess using this also for "File attach" could be done...haven't looked at that, but it would mean some modifications. I created an issue for it...#1085910: Add support for Filefield Sources' "File attach" method.

nicolash’s picture

StatusFileSize
new2.8 KB

Can you test it again with this version, pls. It should now be able to utilise the attach method as well, getting the path settings from your filefield sources configuration for that field.

kapayne’s picture

that worked thanks so much!!