For some reason this block of code works on my local machine but when I upload it to my GoDaddy server it doesn't work, it tells me "The filetype you are attempting to upload is not allowed.". This only happens when I try to upload csv and xlsx files, png and jpgs work no problem.
$filename = "classlist_".date("YmdHis").".csv";
$config['upload_path'] = APPPATH. '../uploads/';
$config['allowed_types'] = 'xlsx|xls|jpg|png|csv';
$config['max_size'] = '1000';
$config['max_width'] = '1024';
$config['max_height'] = '768';
$this->load->library('upload', $config);
if (!$this->upload->do_upload())
{
print_r($this->upload);
echo "error<br/>".$this->upload->display_errors();
exit;
}
else
{
exit;