Strange ! $this->upload->do_upload skip condition |
i found it strange see the code and i will explain below:
Model Code: public function _my_upload( Controller Code: $config = $this->My_upload->_my_upload( but when i test upload image file that bigger than 2MB it skip my condition If (! $this->upload->do_upload) and return else condition. that is strange to me. everything is ok just i can't return specific error message of upload. current CI: 3.1.6
These settings are in the php.ini file.
// Form post size post_max_size=128M // Upload file size upload_max_filesize=128M These should both be set to the same value. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
yes after set 128M in localhost it show error message Thank.
You can change the size to what ever you need, that is just an example size.
Set it to the size of the file you need to upload. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |