[eluser]boytun[/eluser]
thank to InsiteFX
[quote author="InsiteFX" date="1331153873"]mimes.php
Code:
'zip' => array('application/zip', 'application/x-zip', 'application/x-zip-compressed', 'application/octet-stream', 'application/x-compress', 'application/x-compressed', 'multipart/x-zip'),
'rar' => ('application/rar', 'application/x-rar', 'application/x-rar-compressed', 'application/x-compressed', 'application/octet-stream'),
Code:
$up_config['upload_path'] = './assets/img/uploads/';
$up_config['allowed_types'] = 'zip|rar|txt';
$this->load->library('upload',$up_config);
upload file data:
Code:
Array ( [file_name] => country_road.zip
[file_type] => text/plain
[file_path] => public_html/mhphoto/assets/img/uploads/
[full_path] => public_html/mhphoto/assets/img/uploads/country_road.zip
[raw_name] => country_road
[orig_name] =>
[client_name] => country_road.zip
[file_ext] => .zip
[file_size] => 403888
[is_image] =>
[image_width] =>
[image_height] =>
[image_type] =>
[image_size_str] => )
You may also need to download the 3.0 Dev which I belive has fixed the upload problems...
[/quote]