diff -Naur /home/house/downloads/drupal/v7/modules/feeds-7.x-2.0-alpha4/mappers/file.inc feeds/mappers/file.inc --- feeds-7.x-2.0-alpha4/mappers/file.inc 2011-06-29 08:39:58.000000000 +1000 +++ feeds/mappers/file.inc 2011-07-01 16:26:08.000000000 +1000 @@ -44,7 +44,14 @@ // Make sure $value is an array of objects of type FeedsEnclosure. if (!is_array($value)) { - $value = array($value); + $all=explode("|", $value); + $value= explode(";", $all[0]); + if (isset($all[1])) { + $titles = explode(";", $all[1]); + if (isset($all[2])) { + $alt = explode(";", $all[2]); + } + } } foreach ($value as $k => $v) { if (!($v instanceof FeedsEnclosure)) { @@ -77,6 +85,12 @@ foreach ($value as $v) { if ($file = $v->getFile($destination)) { $field['und'][$i] = (array)$file; + if (isset($titles[$i]) && $titles[$i] != '') { + $field['und'][$i]['title'] = $titles[$i]; + } + if (isset($alt[$i]) && $alt[$i] != '') { + $field['und'][$i]['alt'] = $alt[$i]; + } $field['und'][$i]['display'] = 1; // @todo: Figure out how to properly populate this field. if ($info['cardinality'] == 1) { break;