All pastes #559459 Raw Edit

Something

public text v1 · immutable
·published 2007-06-11 19:40 UTC
rendered paste body
   $node->field_photoset = array  
    (
        0 => array
            (
                'fid' => 'upload',
                'filename' => $img_large_name,
                'filepath' => $img_large_path,
                'filemime' => 'image/jpeg',  // the appropriate mimetype
                'filesize' => filesize($img_large_path)
            )
    );
    
    node_save($node);