title: HTTP error occurred during file upload (404: File not found) when uploading images to CKEditor with KCFinder
body: <p>I've installed ckeditor and kcfinder in my /public directory. 
  Despite having added to /public/ckeditor/config.js:</p>
  
  <pre><code>config.filebrowserBrowseUrl = '/kcfinder/browse.php?opener=ckeditor&amp;type=files';
  config.filebrowserImageBrowseUrl = '/kcfinder/browse.php?opener=ckeditor&amp;type=images';
  config.filebrowserFlashBrowseUrl = '/kcfinder/browse.php?opener=ckeditor&amp;type=flash';
  
  config.filebrowserUploadUrl = '/kcfinder/upload.php?opener=ckeditor&amp;type=files';
  config.filebrowserImageUploadUrl = '/kcfinder/upload.php?opener=ckeditor&amp;type=images';
  config.filebrowserFlashUploadUrl = '/kcfinder/upload.php?opener=ckeditor&amp;type=flash';
  </code></pre>
  
  <p>and enabled KCFinder in /public/kcfinder/config.php</p>
  
  <pre><code>'disabled' =&gt; false,
  'uploadURL' =&gt; "/uploads",
  // The uploads directory is inside /public
  </code></pre>
  
  <p>I got an error trying to upload images to CKEditor.</p>
  
  <p><a href="https://i.stack.imgur.com/a4sHL.png" rel="nofollow noreferrer">HTTP error occurred during file upload (404: File not found).</a></p>
  
  <p>I've noticed some errors in my console</p>
  
  <pre><code>[CKEDITOR] Error code: cloudservices-no-token-url.
  [CKEDITOR] Error code: cloudservices-no-upload-url.
  </code></pre>