title: CKEditor's kcfinder file upload plugin: no images shown
body: <p>I'm trying to implement kcfinder into CKEditor so the user can upload some files and implement it into the WYSIWYG editor. I succeeded to manage the "browse on server" button, but when I click it, a pop-up opens and show me some raw php code instead of het image library:</p>
  
  <blockquote>
    <ul>
    <li>@copyright 2010-2014 KCFinder Project * @license <a href="http://opensource.org/licenses/GPL-3.0" rel="nofollow">http://opensource.org/licenses/GPL-3.0</a> GPLv3 * @license
    <a href="http://opensource.org/licenses/LGPL-3.0" rel="nofollow">http://opensource.org/licenses/LGPL-3.0</a> LGPLv3 * @link
    <a href="http://kcfinder.sunhater.com" rel="nofollow">http://kcfinder.sunhater.com</a> */ require "core/bootstrap.php"; $browser
    = "kcfinder\browser"; // To execute core/bootstrap.php on older $browser = new $browser(); // PHP versions (even PHP 4)
    $browser->action(); ?></li>
    </ul>
  </blockquote>
  
  <p>How can I prevent it from doing this?</p>
  
  <p>My files tree:</p>
  
  <pre><code>/coaster_cms/js/ckeditor-config.js
  /coaster_cms/js/kcfinder/conf/config.php
  </code></pre>
  
  <p>Loading the script files:</p>
  
  <pre><code>&lt;script type="text/javascript" src="//code.jquery.com/jquery-2.2.1.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="//cdn.ckeditor.com/4.5.7/full/ckeditor.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/ckeditor/4.5.4/adapters/jquery.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="/coaster_cms/js/ckeditor-config.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>My kcfinder config.js file:</p>
  
  <pre><code>$_CONFIG = array(
  
  
  // GENERAL SETTINGS
  
      'disabled' =&gt; false,
      'uploadURL' =&gt; "upload",
      'uploadDir' =&gt; "",
      'theme' =&gt; "default",
  
      'types' =&gt; array(
  
      // (F)CKEditor types
          'files'   =&gt;  "",
          'flash'   =&gt;  "swf",
          'images'  =&gt;  "*img",
  
      // TinyMCE types
          'file'    =&gt;  "",
          'media'   =&gt;  "swf flv avi mpg mpeg qt mov wmv asf rm",
          'image'   =&gt;  "*img",
      ),
  
  
  // IMAGE SETTINGS
  
      // all image settings are the default ones
  
  );
  </code></pre>
  
  <p>My ckeditor-config.js file:</p>
  
  <pre><code>$('textarea.ckeditor').ckeditor({
      language: 'nl',
      height: '400px',
      // speciale karakters niet escapen
      resize_enabled: false,
      entities_latin: false,
      entities_greek: false,
      entities: false,
      basicEntities: false,
      // extra plugins
      filebrowserBrowseUrl: 'http://development.kattenbelletjes.be/coaster_cms/js/kcfinder/browse.php?opener=ckeditor&amp;type=files',
      filebrowserImageBrowseUrl: 'http://development.kattenbelletjes.be/coaster_cms/js/kcfinder/browse.php?opener=ckeditor&amp;type=images',
      filebrowserFlashBrowseUrl: 'http://development.kattenbelletjes.be/coaster_cms/js/kcfinder/browse.php?opener=ckeditor&amp;type=flash',
      filebrowserUploadUrl: 'http://development.kattenbelletjes.be/coaster_cms/js/kcfinder/upload.php?opener=ckeditor&amp;type=files',
      filebrowserImageUploadUrl: 'http://development.kattenbelletjes.be/coaster_cms/js/kcfinder/upload.php?opener=ckeditor&amp;type=images',
      filebrowserFlashUploadUrl: 'http://development.kattenbelletjes.be/coaster_cms/js/kcfinder/upload.php?opener=ckeditor&amp;type=flash'
  });
  </code></pre>
  
  <p>I also tried:</p>
  
  <pre><code>$('textarea.ckeditor').ckeditor({
      language: 'nl',
      height: '400px',
      // speciale karakters niet escapen
      resize_enabled: false,
      entities_latin: false,
      entities_greek: false,
      entities: false,
      basicEntities: false,
      // extra plugins
      filebrowserBrowseUrl: 'D:/Websites/Kattenbelletjes/03 - Online/coaster_cms/js/kcfinder/browse.php?opener=ckeditor&amp;type=files',
      //filebrowserImageBrowseUrl: 'D:/Websites/Kattenbelletjes/03 - Online/coaster_cms/js/kcfinder/browse.php?opener=ckeditor&amp;type=images',
      filebrowserFlashBrowseUrl: 'D:/Websites/Kattenbelletjes/03 - Online/coaster_cms/js/kcfinder/browse.php?opener=ckeditor&amp;type=flash',
      filebrowserUploadUrl: 'D:/Websites/Kattenbelletjes/03 - Online/coaster_cms/js/kcfinder/upload.php?opener=ckeditor&amp;type=files',
      filebrowserImageUploadUrl: 'D:/Websites/Kattenbelletjes/03 - Online/coaster_cms/js/kcfinder/upload.php?opener=ckeditor&amp;type=images',
      filebrowserFlashUploadUrl: 'D:/Websites/Kattenbelletjes/03 - Online/coaster_cms/js/kcfinder/upload.php?opener=ckeditor&amp;type=flash',
  });
  </code></pre>
  
  <p>... but I discovered the force isn't with me: I've got an empty pop-up page with no errors at all.</p>
  
  <p>Anybody who could help me please? ;)</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I'm still trying to fix it (first on my local xampp server; "<a href="http://development.kattenbelletjes.be" rel="nofollow">http://development.kattenbelletjes.be</a>"), but I haven't succeed yet. I guess the problem lies in the browse en upload url in ckeditor-config.js. My latest try:</p>
  
  <pre><code>filebrowserBrowseUrl: 'D:/Websites/Kattenbelletjes/03 - Online/app/webroot/coaster_cms/js/kcfinder/browse.php?opener=ckeditor&amp;type=files',
  filebrowserImageBrowseUrl: 'D:/Websites/Kattenbelletjes/03 - Online/app/webroot/coaster_cms/js/kcfinder/browse.php?opener=ckeditor&amp;type=images',
  filebrowserFlashBrowseUrl: 'D:/Websites/Kattenbelletjes/03 - Online/app/webroot/coaster_cms/js/kcfinder/browse.php?opener=ckeditor&amp;type=flash',
  filebrowserUploadUrl: 'D:/Websites/Kattenbelletjes/03 - Online/app/webroot/coaster_cms/js/kcfinder/upload.php?opener=ckeditor&amp;type=files',
  filebrowserImageUploadUrl: 'D:/Websites/Kattenbelletjes/03 - Online/app/webroot/coaster_cms/js/kcfinder/upload.php?opener=ckeditor&amp;type=images',
  filebrowserFlashUploadUrl: 'D:/Websites/Kattenbelletjes/03 - Online/app/webroot/coaster_cms/js/kcfinder/upload.php?opener=ckeditor&amp;type=flash',
  </code></pre>
  
  <p>Again: I've got the empty pop-up page. When I check Chromes F12 console, an error says now:</p>
  
  <blockquote>
    <p>Not allowed to load local resource:
    file:///D:/Websites/Kattenbelletjes/03%20-%20Online/app/webroot/coaster_cms/js/kcfinder/browse.php?opener=ckeditor&amp;type=images&amp;CKEditor=PostContent&amp;CKEditorFuncNum=0&amp;langCode=nl</p>
  </blockquote>
  
  <p>Aaaaaargh :)</p>