Welcome Guest, Not a member yet? Register   Sign In
PDF Wont upload, other types work great
#1

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


Messages In This Thread
PDF Wont upload, other types work great - by El Forum - 03-15-2012, 05:54 PM
PDF Wont upload, other types work great - by El Forum - 03-15-2012, 06:17 PM
PDF Wont upload, other types work great - by El Forum - 03-15-2012, 06:22 PM
PDF Wont upload, other types work great - by El Forum - 03-15-2012, 06:28 PM
PDF Wont upload, other types work great - by El Forum - 03-15-2012, 08:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB