Bulk saving nodes with a file field
It's pretty straight forward, setup your content type with the required fields, then you want to use code similar to this:

$file = new stdClass();
$file-&gt;filename = basename($filepath);
$file-&gt;filepath = $filepath;
$file-&gt;filemime = $mime;
$file-&gt;filesize = filesize($filepath);

$file-&gt;uid = $uid;
$file-&gt;status = FILE_STATUS_PERMANENT;
$file-&gt;timestamp = time();
drupal_write_record('files', $file);


$node = new StdClass();
$node-&gt;type = 'type';
$node-&gt;body = 'body';
$node-&gt;title = 'title';
$node-&gt;field_file = array(
  array(
    'fid' =&gt; $file-&gt;fid,
    'title' =&gt; basename($file-&gt;filename),
    'filename' =&gt; $file-&gt;filename,
    'filepath' =&gt; $file-&gt;filepath,
    'filesize' =&gt; $file-&gt;filesize,
    'mimetype' =&gt; $mime,
    'data' =&gt; array(
      'description' =&gt; basename($file-&gt;filename),
    ),
    'list' =&gt; 1,
  ),
);
$node-&gt;uid = 1;
$node-&gt;status = 1;
$node-&gt;active = 1;
$node-&gt;promote = 1;
node_save($node);