[eluser]skattabrain[/eluser]
so this is making me crazy ... all of a sudden, Firefox 3.01 won't upload my excel file, i get the error ... "The filetype you are attempting to upload is not allowed."
IE 7 and Google Chrome ... have no issues ... and this was working last time I checked it a few weeks ago.
uploading an MS Excel 2003 file ... not an XLSX file.
here is my controller ... has firefox changed how it handles the XLS mime type?
Code:
function do_upload() {
$d['titlebar'] = 'Upload XLS Spreadsheet';
$d['h2'] = 'Upload Your XLS Phone Useage Spreadsheet';
$config['upload_path'] = './uploads/';
$config['allowed_types'] = 'xls';
$config['max_size'] = '4096';
$this->load->library('upload', $config);
if ( ! $this->upload->do_upload())
{
$d['error'] = $this->upload->display_errors();
$this->load->view('skadmin/uploadform_page', $d);
}
else
{
$result = $this->upload->data();
redirect('upload/file/'.$result['file_name']);
}
}