Welcome Guest, Not a member yet? Register   Sign In
upload gives white screen
#1

[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.


Messages In This Thread
upload gives white screen - by El Forum - 12-17-2009, 02:55 AM
upload gives white screen - by El Forum - 12-17-2009, 05:31 AM
upload gives white screen - by El Forum - 12-17-2009, 05:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB