summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/libraries
diff options
context:
space:
mode:
authorTicema <tiagowbpr@gmail.com>2015-05-17 23:29:21 +0200
committerTicema <tiagowbpr@gmail.com>2015-05-17 23:29:21 +0200
commitd90a65c8312c07ccc94452947b78aeb08f665a37 (patch)
treeb24d92b3e7737fbe7e50ac60b287e13805dba8e1 /user_guide_src/source/libraries
parente1b20cb47c59e869b04ed04bc17d6642243c8cb8 (diff)
param missing.
add param to do_upload() function.
Diffstat (limited to 'user_guide_src/source/libraries')
-rw-r--r--user_guide_src/source/libraries/file_uploading.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/user_guide_src/source/libraries/file_uploading.rst b/user_guide_src/source/libraries/file_uploading.rst
index ea2fef7f2..6d2106be8 100644
--- a/user_guide_src/source/libraries/file_uploading.rst
+++ b/user_guide_src/source/libraries/file_uploading.rst
@@ -118,7 +118,7 @@ this code and save it to your **application/controllers/** directory::
$this->load->library('upload', $config);
- if ( ! $this->upload->do_upload())
+ if ( ! $this->upload->do_upload('userfile'))
{
$error = array('error' => $this->upload->display_errors());
@@ -352,4 +352,4 @@ Class Reference
image_height Image height
image_type Image type (usually the file name extension without the period)
image_size_str A string containing the width and height (useful to put into an image tag)
- ================ ==================================================================================================== \ No newline at end of file
+ ================ ====================================================================================================