File upload field in CCK field settings
You need to add a FILE_STATUS_PERMANENT to the status of the file on form submit then save the file.

$file-&gt;status = FILE_STATUS_PERMANENT;
file_save($file);