From d90a65c8312c07ccc94452947b78aeb08f665a37 Mon Sep 17 00:00:00 2001 From: Ticema Date: Sun, 17 May 2015 18:29:21 -0300 Subject: param missing. add param to do_upload() function. --- user_guide_src/source/libraries/file_uploading.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'user_guide_src/source') 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 + ================ ==================================================================================================== -- cgit v1.2.3-24-g4f1b