[documentation] [Documentation task] Forms API Reference 'file' element missing information
add1sun
drupal-docs at drupal.org
Thu Feb 1 23:36:46 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: add1sun
-Status: active
+Status: fixed
Thanks. I've added a note to the file element in the form api reference
along with a link to the new handbook page that was created from that
thread - Handling File Uploads [1].
[1] http://drupal.org//node/111782
add1sun
Previous comments:
------------------------------------------------------------------------
Thu, 01 Feb 2007 22:43:20 +0000 : rszrama
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.)
More information about the documentation
mailing list