[eluser]code_has_been_ignited[/eluser]
Hello
If someone would kindly help me out. I have a simple image upload form that uploads images (jpeg,gif,png) just awesome.
When I try to upload .PDF's it doesnt work.
This is the code called when I submit my form with the selected .pdf.
Code:
function do_upload() {
$config = array(
'allowed_types' => 'pdf|jpg|jpeg|gif|png',
'upload_path' => $this->gallery_path,
'max_size' => 200000
);
$this->load->library('upload', $config);
$this->upload->do_upload();
Then nothing. I tried to debug it but this is whats displayed:
Code:
Array ( [upload_data] => Array ( [file_name] => [file_type] => [file_path] => /var/www/assets/media/ [full_path] => /var/www/assets/media/ [raw_name] => [orig_name] => [client_name] => [file_ext] => [file_size] => [is_image] => [image_width] => [image_height] => [image_type] => [image_size_str] => ) )
I cannot figure this out. I would be ever so grateful if someone can help me out.
Thanks!