Ok.. txt is working now….. never really figured out why it wasnt working… but pdfs arent working now…
on mimes.php I have
'pdf' => array('application/pdf', 'application/x-download'),
on my config I have
$config['allowed_types'] = 'txt|png|doc|docx|xls|xlsx|pdf|mp3|wma|wmv|gif|jpg|png';
$config['max_size'] = '999999999';
$config['max_width'] = '999999999';
$config['max_height'] = '999999999';
$this->load->library('upload', $config);
and
$error = array('error' => $this->upload->display_errors());
print_r($this->upload->data());
echo "<br />";
print_r($error);
printed out
Array ( [file_name] => PDFlib-Lite-license.pdf [file_type] => application/pdf [file_path] => /var/www/vhosts/----/httpdocs/----/ [full_path] => /var/www/vhosts/----/httpdocs/----/PDFlib-Lite-license.pdf [raw_name] => PDFlib-Lite-license [orig_name] => [file_ext] => .pdf [file_size] => 30.29 [is_image] => [image_width] => [image_height] => [image_type] => [image_size_str] => )
Array ( [error] =>
The filetype you are attempting to upload is not allowed