If you have problem with uploading rar file using codeigniter upload class it because on mime file there’s no definition for rar file.

Open system/application/config/mime.php file and add RAR definition

‘rar’ => ‘application/rar’

(Note: I use Firefox 4, that config may not work on other browser because other browser may define MIME for rar fire differently.