[eluser]peekk[/eluser]
Hello, I have following problem. I need to upload .rtf files to the server. This is my upload form:
Code:
echo form_open_multipart('/text/add',$form_params);
<?php echo form_upload('userfile');?>
and my text/add is following:
Code:
$config['upload_path'] = './texts';
$config['allowed_types'] = 'rtf|doc|docx';
$this->load->library('upload', $config);
$this->upload->do_upload();
And when i'm uploading .doc file, that's ok - but when it's .rtf, directory ./texts is empty.
I also added the
Code:
'rtf' => 'application/rtf'
to mime array in config/mimes.php.
What's wrong?