7

I am using kcfinder with ckeditor. While changing disabled to false in config file of kcfinder there is no problem but on overriding it with

$_SESSION['KCFINDER'] = array(
    'disabled' => false
);

i am unable to browse & upload files there.Message pop up's showing you don't have permission to browse the server. (framework used CI 3.x.)

salin kunwar
  • 1,128
  • 3
  • 13
  • 22
  • Take a look at [this answer](http://stackoverflow.com/questions/13760367/kcfinder-you-do-not-have-permission-to-list-the-files?rq=1) – Bhavik Shah Nov 17 '16 at 10:53
  • Possible duplicate of: http://stackoverflow.com/questions/13760367/kcfinder-you-do-not-have-permission-to-list-the-files?rq=1 – Rav Nov 22 '16 at 10:05

1 Answers1

7

Try this. Make following changes to main index.php file

//$system_path = 'system';
$system_path = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'system';
//$application_folder = 'application';
$application_folder = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'application';

And put this code in browse.php of kcfinder

ob_start();
require_once('../index.php'); //path to main index file edited above
ob_end_clean();
$CI =& get_instance();
$CI->load->library('session');
Niroj Adhikary
  • 1,775
  • 18
  • 30