[eluser]überfuzz[/eluser]
I'm setting up a pdf-upload. The file is uploaded, but I'm getting a white screen.
Code:
$config['upload_path'] = './assets/pdf/';
$config['allowed_types'] = 'pdf';
$config['max_size'] = '5000'; // Don't say, clients order. default in php.ini is 12M.
$config['xss_clean'] = TRUE;
if(!isset($this->data['status_pdf'])) //If no error in form status_pdf isn't set.
{
$this->load->library('upload', $config);
if ( ! $this->upload->do_upload())
{
// ------------------- Part works
$this->data['status_pdf'][] = $this->upload->display_errors('', '');
$this->data['content'] = "inloggad/veckobrev/form";
$this->load->view('templates/logged', $this->data);
}
else
{
// ---------------------- Here I'm getting white screen.
//get raw_name to store src-link.
$temp_array = $this->upload->data();
print_r($temp_array);
}
}
Edit, I can't see what's wrong here. If any one can and points it out I'll be very happy.