Here's what I'd like Feeds to do...
1) For a given URL, fetch it as a file. In this case it's a GZIP file.
2) Do not parse the file, just noop and continue.
3) Attach the fetched file to a node, as a field of type file.
I can't see a way to do this out of the box. It looks like at the very least it would require a "noop" parser that doesn't parse anything, and a node processor that can attach the original fetched file.
Basically I'm aiming to use feeds somewhat like a managed file transfer process, on a defined schedule (in the Feeds UI), where files are attached to nodes, and those nodes are subsequently expired according to the node processor settings.
I'd love some thoughts on this - I didn't see any supporting modules that enable this but I could have missed them. Thanks.
Comments
Comment #1
rjbrown99 commentedHm, I guess I could work around this by creating a fakie XML file for feeds to import, that has one entry per file I want it to create. It could then parse that and import/save the files to the nodes.
Comment #2
TimelessDomain commentedI am trying to do something similar. Just want to scrape a file directory for new image files then post them without any parsing. So right now i can search the directory using http://drupal.org/project/feeds_fetcher_directory , but then there is no way to map the image files from the directory.
Maybe the Gammar Parser could help? http://drupal.org/project/grammar_parser_ui "It allows you to specify individual source code files or entire directories of source code files to be parsed."
Comment #3
tterranigma commentedYou can easily do this by assigning a value directly to the (URI of) the file field. Feeds Tamper will also help you set the value to exactly what you want.