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
Comment #1
wqmeng commentedSorry it's my fault. The original code is right.