![]() |
I am working on a Social Network application with Codeigniter 3, Ioan-Auth and Bootstrap 4. More details HERE.
The code below correctly hashes the filename before inserting it in the avatar column, but the upload itself never happens. Code: if ($this->form_validation->run() === TRUE) I have a XAMPP server on Windows 10, so it is unlikely that there are permission issues on the images folder.
Maybe because your missing the ending forward slash / on the upload_path?
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Have you tried checking each suitable points ? For example, after your upload path line you can :
PHP Code: $config['upload_path'] = './assets/img/avatars'; So that you can see the results of each code block. By the way, $this->load->library part did not work for me as well and I used it as below in one of my projects: PHP Code: //$this->load->library('upload', $config); instead of this, use below (09-03-2020, 12:03 PM)demyr Wrote: Have you tried checking each suitable points ? For example, after your upload path line you can : Nice, but how do I load the upload library then? PHP Code: // You could also autoload it 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 |