title: How to change file upload URL in CKFinder 2.2 using Java
body: <p>I am using CKFinder-2.2 with CKEditor-3.5.X and all was well until I tried to upload an image/file and send that to image. I got the following error when I tried to send the file to the server <code>No mapping found for HTTP request with URI [/my-project/ckfinder/core/connector/java/connector.java] in DispatcherServlet with name 'appServlet'</code>. I am using Spring MVC 3 for this web application.</p>
  
  <p>The <strong>browse server</strong> button with <strong>upload</strong> button works just fine as I made the required changes in the <code>&lt;url-pattern&gt;</code> in <code>web.xml</code> to get it working, but I can't send the file to the server using <strong>the send it to the server</strong> button.</p>
  
  <p><img src="https://i.stack.imgur.com/3CZbg.jpg" alt="enter image description here"></p>
  
  <p>I think the error occurred due to following lines in <code>CKFinderSetupCKEditor.java</code>:</p>
  
  <pre><code>private static final String CKFINDER_UPLOAD_URL = "/ckfinder/core/connector/java/connector.java?command=QuickUpload&amp;type=";
  private static final String CKFINDER_PAGE = "/ckfinder.html";
  </code></pre>
  
  <p>I tried the <code>config</code> attribute of <code>&lt;ckeditor:replace&gt;</code> as well as mentioned below but that did not help either.</p>
  
  <pre><code>&lt;%@ page import="com.ckeditor.CKEditorConfig" %&gt;
  &lt;%
      CKEditorConfig settings = new CKEditorConfig();
      settings.addConfigValue("filebrowserUploadUrl", "/my-project/resources/ckfinder/core/connector/java/connector.java?command=QuickUpload&amp;type=Files");
      settings.addConfigValue("filebrowserImageUploadUrl", "/my-project/resources/ckfinder/core/connector/java/connector.java?command=QuickUpload&amp;type=Images");
      settings.addConfigValue("filebrowserFlashUploadUrl", "/my-project/resources/ckfinder/core/connector/java/connector.java?command=QuickUpload&amp;type=Flash");
  %&gt;
      &lt;ckfinder:setupCKEditor basePath="/my-project/resources/ckfinder/" editor="editor1" /&gt;  
      &lt;ckeditor:replace replace="editor1" basePath="/my-project/resources/ckeditor/" config="&lt;%=setting&gt;"/&gt;
  </code></pre>
  
  <p>Could someone help me understand what am I doing wrong here and how to get it done? It's just a file I want to upload to my server. It should not be too difficult.</p>