Note: you will need to include $form['#attributes'] = array('enctype' => "multipart/form-data"); in your form.
Is there any reason why the forms engine can't do this automatically upon finding a file field in the structured array? It would really save a ton of bother, and quite some time spent bug-hunting...
Unable to apply patch 137932_enctype_cleanup_0.patch View
Failed: Failed to install HEAD. View
|#30||issue-137932-30.patch||4.08 KB||Alan D.|
|#22||issue-137932-22.patch||4.1 KB||Alan D.|
|#20||issue-137932-enctype.patch||1.92 KB||Alan D.|