Welcome Guest, Not a member yet? Register   Sign In
image upload
#1

[eluser]sree777[/eluser]
While uploadg image its showg error..
#2

[eluser]Nick_MyShuitings[/eluser]
you're going to need to be a lot more detailed then that. I'm only responding cuz I am bored/its late/and the push to live is taking a while.

Give some examples of the error, and of the code that produced it.
#3

[eluser]sree777[/eluser]
if($this->input->post('id')){

$this->load->helper('form');
$this->load->model('member_model');
$data['id'] = $this->input->post('id');
$data['query'] = $this->member_model->entry_add();

$config['upload_path'] = 'uploads/';
$config['allowed_types'] = 'gif|jpg|jpeg|png';
$config['max_size'] = '1000';
$config['max_width'] = '1920';
$config['max_height'] = '1280';
$this->load->library('upload', $config);

if(!$this->upload->do_upload())
echo ""; //echo $this->upload->display_errors();
else {
$fInfo = $this->upload->data();
//echo '<pre>'; print_r($fInfo); echo '</pre>'; $fInfo['file_name'];
$this->_createThumbnail($fInfo['file_name']);
$data['uploadInfo'] = $fInfo;
$data['thumbnail_name'] = $fInfo['raw_name'] . '_thumb' . $fInfo['file_ext'];
//$this->load->view('view_1', $data);
}

$this->load->view('formsubmit',$data);
}
}
#4

[eluser]Nick_MyShuitings[/eluser]
what is the error you are getting?

and if you can add some comments into the code that would help us understand what the model call entry_add() is supposed to do... for example
#5

[eluser]sree777[/eluser]
View
&lt;?php $Fdata = array('name' => 'mem_photo', 'class' => 'file');
echo form_upload($Fdata);?&gt;
The problm s the value n the file upload (view page) s not gettg n the model page




Theme © iAndrew 2016 - Forum software by © MyBB