Welcome Guest, Not a member yet? Register   Sign In
Validation problem for form_upload
#8

[eluser]Sawariya[/eluser]
function do_upload()
{
$config['upload_path'] = './uploads/';
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size'] = '100';
$config['max_width'] = '1024';
$config['max_height'] = '768';

$this->load->library('upload', $config);

if ( ! $this->upload->do_upload())
{
$arr= array('error' => $this->upload->display_errors());

$this->load->view('upload_form', $arr);
}
else
{
$data = array('upload_data' => $this->upload->data());

$this->load->view('upload_success', $data);
}
}


Messages In This Thread
Validation problem for form_upload - by El Forum - 01-02-2008, 03:11 AM
Validation problem for form_upload - by El Forum - 01-02-2008, 03:15 AM
Validation problem for form_upload - by El Forum - 01-02-2008, 03:33 AM
Validation problem for form_upload - by El Forum - 01-02-2008, 03:43 AM
Validation problem for form_upload - by El Forum - 01-02-2008, 04:25 AM
Validation problem for form_upload - by El Forum - 01-02-2008, 09:36 PM
Validation problem for form_upload - by El Forum - 01-02-2008, 10:05 PM
Validation problem for form_upload - by El Forum - 01-02-2008, 10:19 PM



Theme © iAndrew 2016 - Forum software by © MyBB