[documentation] [Documentation task] Forms API Reference 'file' element missing information

rszrama drupal-docs at drupal.org
Thu Feb 1 22:43:20 UTC 2007


Issue status update for 
http://drupal.org/node/115175
Post a follow up: 
http://drupal.org/project/comments/add/115175

 Project:      Documentation
 Version:      <none>
 Component:    Documentation in CVS
 Category:     tasks
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  rszrama
 Updated by:   rszrama
 Status:       active

It seems this has come up several times. People trying to use the 'file'
type element in their forms have no reason to know they need to
include...


<?php
$form['#attributes'] = array('enctype' => 'multipart/form-data');
?>


...in their form array.


Could this be added to the 'file' element in the Usage Example or at
least as a footnote.  The FAPI Reference seems like the best place to
put such a tip.


(One recent query... http://drupal.org/node/111764.  I don't know if
that handbook page was ever written, but the reference should mention
this, too.)




rszrama



More information about the documentation mailing list