Welcome Guest, Not a member yet? Register   Sign In
Uploading a .rtf file
#1

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


Messages In This Thread
Uploading a .rtf file - by El Forum - 03-16-2012, 03:42 AM
Uploading a .rtf file - by El Forum - 03-16-2012, 06:13 AM
Uploading a .rtf file - by El Forum - 03-16-2012, 11:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB