December 2013
Intermediate to advanced
306 pages
6h 26m
English
CodeIgniter comes with very good file uploading support, which can take a lot of the hassle out of writing upload functions.
There are some settings you should be aware of which you'll probably need to change for your environment. Firstly, ensure that you load the upload library using:
$this->load->library('upload'); The following is a table of settings that should be placed in the $config array in the controller you are using, such as the following Fileupload controller:
|
Setting |
Default |
Change to |
Description |
|---|---|---|---|
|
|
None |
None |
It specifies the path to the folder where the uploaded file should go. Ensure that you have set the correct permissions to enable CodeIgniter to write to it. |
|
|
Read now
Unlock full access