This is how I call the editor:
new nicEditor({ buttonList : ['bold','italic','underline','upload'], iconsPath:'img/nicedit.png', uploadURI : 'http://server.com/integracion/files/nicUpload.php' }).panelInstance(textareaId);
And the .php file exists (and I'm alone in Docs , and I updated the target paths)
define('NICUPLOAD_PATH', './uploads'); // Set the path (relative or absolute) to // the directory to save image files define('NICUPLOAD_URI', '/uploads'); // Set the URL (relative or absolute) to // the directory defined above
But I respond when the download completes (and will generate a warning from nicedit ..)
<script> try { top.nicUploadButton.statusCb({"error":"Invalid Upload ID"}); } catch(e) { alert(e.message); } </script>
What am I missing?
-Edit
I think the problem may be in the php file:
$id = $_POST['APC_UPLOAD_PROGRESS']; if(empty($id)) { $id = $_GET['id']; }
source share