<?php
function resumeupload_test_form() {
$form['field_resume'] = array(
'#type' => 'file',
'#title' => t('CV Uploader'),
'#required' => TRUE,
'#size' => 22,
);
$form['upload'] = array(
'#type' => 'submit',
'#value' => t('Upload'),
);
//This is how enctype is specified
$form['#attributes'] = array('enctype' => "multipart/form-data");
return $form;
}
?>