Hi, line 366, Seems that $node->$field is a bug?

  $node->$field = array(
     array(
      'fid'   => 'upload',
      'title' => basename($filepath),
      'filename' => basename($filepath),
      'filepath' => $filepath,
      'filesize' => filesize($filepath),
    ),
  )

Change $node->$field = array(
to $node->field = array(

Comments

wqmeng’s picture

Priority: Critical » Minor
Status: Active » Closed (fixed)

Sorry it's my fault. The original code is right.