summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-05-18 09:58:03 +0200
committerAndrey Andreev <narf@devilix.net>2015-05-18 09:58:03 +0200
commit42743c61de725b5a21446ee2b4c2a56b71a42f20 (patch)
treeb24d92b3e7737fbe7e50ac60b287e13805dba8e1 /user_guide_src/source
parente1b20cb47c59e869b04ed04bc17d6642243c8cb8 (diff)
parentd90a65c8312c07ccc94452947b78aeb08f665a37 (diff)
Merge pull request #3863 from tiagowbpr/develop
[ci skip] Fix a doc example
Diffstat (limited to 'user_guide_src/source')
-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
+ ================ ====================================================================================================