[eluser]RJ[/eluser]
Hopefully someone can help, I can't for the life of me get past the "The filetype you are attempting to upload is not allowed." error. Below is the config and properties of upload object after I've tried to upload. Thank you
Code:
$config['upload_path'] = 'uploads/';
$config['allowed_types'] = 'gif|jpg|png|jpeg|JPG';
$config['max_size'] = '2048';
$config['max_width'] = '1024';
$config['max_height'] = '768';
$config['remove_spaces'] = TRUE;
//$config['encrypt_name'] = TRUE;
Quote:CI_Upload Object
(
[max_size] => 2048
[max_width] => 1024
[max_height] => 768
[max_filename] => 0
[allowed_types] => Array
(
[0] => gif
[1] => jpg
[2] => png
[3] => jpeg
[4] => JPG
)
[file_temp] => /tmp/phpSvIJIw
[file_name] => social-landscape.gif
[orig_name] =>
[file_type] => image/gif
[file_size] => 241000
[file_ext] => .gif
[upload_path] => /var/www/test/uploads/
[overwrite] =>
[encrypt_name] =>
[is_image] =>
[image_width] =>
[image_height] =>
[image_type] =>
[image_size_str] =>
[error_msg] => Array
(
[0] => The filetype you are attempting to upload is not allowed.
)
[mimes] =>
[remove_spaces] => 1
[xss_clean] =>
[temp_prefix] => temp_file_
[client_name] => social-landscape.gif
[_file_name_override:protected] =>
)