Drupal: Programmatically saving imagefield images
- by Ace
Hey there!
I'm trying to write a sync function that saves some data to nodes, which works fine, until I try to save the thumbnail image associated with the node.
I've managed to download the file and put it in my sites/default/files folder, but what's the best way to tell Drupal, "put this file in that CCK imagefield"?
EDIT
To clarify a bit.. I…