From ddd0c7dff8e8d422f72c91c43e8a3a0a24c4c408 Mon Sep 17 00:00:00 2001 From: admin Date: Tue, 5 Sep 2006 04:05:33 +0000 Subject: --- user_guide/libraries/file_uploading.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'user_guide/libraries') 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 $this->upload->initialize function if you sa

$this->upload->do_upload()

-

Performs the upload based on the preferences you've set. Note: The upload routine expects the file to come from a form field +

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 userfile, and the form must be a "multipart type:

<form method="post" action="some_action" enctype="multipart/form-data" /> +

If you would like to set your own field name simply pass its value to the do_upload function:

+ + +$field_name = "some_field_name";
+$this->upload->do_upload($field_name)
+

$this->upload->display_errors()

-- cgit v1.2.3-24-g4f1b