I have a problem with nicEditor for text fields, to be more precise; image upload button.
My index.php file contains the name where nicEditor is called. In the same folder are two other folders: โimagesโ, where I want to store files and โincludesโ, where nicEdit.js and nicUpload.php (which contains the download code provided from the official site).
My problem: when I want to upload an image via nicEdit, I get the error message "Failed to upload image" appears, although I set the following options:
- 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 nobody works)
- The "images" folder has a resolution of 777
I spent hours just trying and making a mistake, but I could not achieve any positive results ...
[edit]:
When I upload a larger file, I see that the download process is loading, but as soon as it is completed, the message "Could not load image"
The code in nicEdit.js includes:
var nicUploadButton=nicEditorAdvancedButton.extend({nicURI:'includes/nicUpload.php',errorText:"Failed to upload image",addPane:function ......
source share