Welcome Guest, Not a member yet? Register   Sign In
Issue uploading image file
#5

(11-28-2019, 04:53 AM)InsiteFX Wrote: Check your php.ini settings.

They should be larger then your image size.

Code:
memory_limit = 32M
max_file_uploads = 25

;; These should both match the sizes
upload_max_filesize = 20M
post_max_size = 25M

Also your upload path is incorrect, it should be like this.

Code:
$config['upload_path'] = './Adverts/';

Give that a try.


I did that and it didn't work as well. I changed the path to './Adverts/'. My troubleshooting shows that it is not working cos when i commented out the do_upload with the conditional statement, the data was inserted in the database. See the HTML form 

<form id="ajax_form" enctype='multipart/form-data' name="ajax_form" class="form-horizontal" method="post" action="<?php echo base_url();  ?>advert/create">

The Controller

$this->load->helper(array('html','form','url'));
$this->load->library('form_validation');
$this->load->library('pagination');
$this->load->library('session');


I dont know why it is not uploading the image file to the destination folder. Hope my .htaccess is not preventing that? Cos in my code, it is showing that it is not uploading the image file. That is where it fails.

Thank you in advance for providing help.
Reply


Messages In This Thread
Issue uploading image file - by olammieconcept - 11-27-2019, 09:06 PM
RE: Issue uploading image file - by ciadmin - 11-27-2019, 10:55 PM
RE: Issue uploading image file - by InsiteFX - 11-28-2019, 04:53 AM
RE: Issue uploading image file - by olammieconcept - 11-28-2019, 02:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB