title: NicEdit: Picture upload to own server doesn't work -> configuration wrong?
body: <p>I have a problem regarding the nicEditor for textareas, to be more precise; the picture upload button.</p>
  
  <p>My file index.php contains the  where the nicEditor is called. In the same folder are two other folders: "images", where I want to store the files in and "includes", where nicEdit.js and nicUpload.php (which contains the Upload Code provided from the official site) are.</p>
  
  <p>My problem is: When I want to upload a picture via nicEdit, the error message "Failed to upload image." appears, although I have set the follwoing parameters:</p>
  
  <ul>
  <li>In nicEdit.js, nicURI is set to "includes/nicUpload.php"</li>
  <li>In nicUpload.php, NICUPLOAD_PATH is defined as "./images" and NICUPLOAD_URI is defined as "images" (I tried several other combinations here, but none seems to work)</li>
  <li>The folder "images" has permission 777 </li>
  </ul>
  
  <p>I wasted hours just doing try and error but I wasn't able to get any positive results doing so...    </p>
  
  <p><strong>[edit]:</strong></p>
  
  <p>When I upload a bigger file, I can see the upload bar progessing, but as soon as it is complete, the "Failed to upload image" appears</p>
  
  <p>the code in nicEdit.js includes:</p>
  
  <pre><code>var nicUploadButton=nicEditorAdvancedButton.extend({nicURI:'includes/nicUpload.php',errorText:"Failed to upload image",addPane:function ......
  </code></pre>