I have a problem regarding the nicEditor for textareas, to be more precise; the picture upload button.
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.
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:
- In nicEdit.js, nicURI is set to "includes/nicUpload.php"
- 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)
- The folder "images" has permission 777
I wasted hours just doing try and error but I wasn't able to get any positive results doing so...
[edit]:
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
the code in nicEdit.js includes:
var nicUploadButton=nicEditorAdvancedButton.extend({nicURI:'includes/nicUpload.php',errorText:"Failed to upload image",addPane:function ......