summaryrefslogtreecommitdiffstats
path: root/user_guide/libraries
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-09-05 06:05:33 +0200
committeradmin <devnull@localhost>2006-09-05 06:05:33 +0200
commitddd0c7dff8e8d422f72c91c43e8a3a0a24c4c408 (patch)
treecc1616b2f762e5791902ed066d097e637d38c193 /user_guide/libraries
parent27818494dca469e96709fd9c54ba8f8461d88714 (diff)
Diffstat (limited to 'user_guide/libraries')
-rw-r--r--user_guide/libraries/file_uploading.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/user_guide/libraries/file_uploading.html b/user_guide/libraries/file_uploading.html
index 7fabb095d..071ad1f1b 100644
--- a/user_guide/libraries/file_uploading.html
+++ b/user_guide/libraries/file_uploading.html
@@ -323,11 +323,17 @@ will NOT need to use the <dfn>$this->upload->initialize</dfn> function if you sa
<h2>$this->upload->do_upload()</h2>
-<p>Performs the upload based on the preferences you've set. Note: The upload routine expects the file to come from a form field
+<p>Performs the upload based on the preferences you've set. Note: By default the upload routine expects the file to come from a form field
called <dfn>userfile</dfn>, and the form must be a "multipart type:</p>
<code>&lt;form method="post" action="some_action" enctype="multipart/form-data" /></code>
+<p>If you would like to set your own field name simply pass its value to the <dfn>do_upload</dfn> function:</p>
+
+<code>
+$field_name = "some_field_name";<br />
+$this->upload->do_upload($field_name)</code>
+
<h2>$this->upload->display_errors()</h2>