Welcome Guest, Not a member yet? Register   Sign In
File Uploading .ZIP .RAR
#10

[eluser]InsiteFX[/eluser]
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...


Messages In This Thread
File Uploading .ZIP .RAR - by El Forum - 02-18-2012, 03:17 PM
File Uploading .ZIP .RAR - by El Forum - 02-18-2012, 04:44 PM
File Uploading .ZIP .RAR - by El Forum - 02-18-2012, 05:04 PM
File Uploading .ZIP .RAR - by El Forum - 02-18-2012, 05:39 PM
File Uploading .ZIP .RAR - by El Forum - 02-19-2012, 10:10 AM
File Uploading .ZIP .RAR - by El Forum - 02-19-2012, 03:00 PM
File Uploading .ZIP .RAR - by El Forum - 02-20-2012, 01:01 AM
File Uploading .ZIP .RAR - by El Forum - 02-20-2012, 08:58 AM
File Uploading .ZIP .RAR - by El Forum - 03-07-2012, 10:20 AM
File Uploading .ZIP .RAR - by El Forum - 03-07-2012, 01:57 PM
File Uploading .ZIP .RAR - by El Forum - 03-08-2012, 05:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB