Closed (fixed)
Project:
Feeds
Version:
6.x-1.0-alpha12
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Mar 2010 at 08:25 UTC
Updated:
30 Jan 2014 at 07:24 UTC
Jump to comment: Most recent
The function filefield_feeds_set_target is not beeing invoked resulting in no file beeing downloaded. Other CCK fields are working as expected. Using custom parser based on FeedsParser, it just a skeleteon with two mapping sources, title and file.
public function parse(FeedsImportBatch $batch, FeedsSource $source) {
$string = $batch->getRaw();
$xml = simplexml_load_string($string);
foreach($xml->item as $item) {
$row = array(
'title' => 'Title',
'file' => array(
new FeedsEnclosure('http://localhost/feeds/sites/default/files/image.jpg', 'application/octet-stream'),
),
);
$batch->addItem($row);
}
$batch->setTitle('Test');
}
Comments
Comment #1
alex_b commentedIs this the same issue as reported here?
#740962: FileFetcher Attached to Feed Node, Upload Field Not Saving File Path
Comment #2
twistor commentedI hope you figured this out.