How do I do a file upload with other form data in Drupal 6? I have this in my form function: 

$form['#attributes'] = array('enctype' =&gt; 'multipart/form-data');
... other form fields
$form['form']['form_file'] =  array (
    '#type' =&gt; 'file',
    '#name' =&gt; 'form_file',
    '#attributes' =&gt; array ('class' =&gt; 'textarea_crmform'),
 );


and when I call file_save_upload in my submit function, I am doing this:

if ($file = file_save_upload('form_file'))


But it never gets into the above if statement.
My guess is that there's an error. Have you looked at your watchdog log? Is the temporary directory setup and writable by the web server?