I have a CCK node type with a required File Field (this is a "download page" for our hosting downloads). How can I create a node programmatically that populates the file field, either with uploaded data or a file already present on the system? I've successfully created simpler nodes with drupal_execute.

Comments

anantagati’s picture

subscribing...

dopry’s picture

Status: Active » Closed (fixed)

see http://drupal.org/node/201594

It should work for filefield as well... maybe some minor tweaking required.