Nicedit загрузить изображения локально не удается

Вот как я называю редактор:

new nicEditor({
           buttonList : ['bold','italic','underline','upload'],
           iconsPath:'img/nicedit.png',
           uploadURI : 'http://server.com/integracion/files/nicUpload.php'
}).panelInstance(textareaId);

И файл .php существует (и я один вДокументыи я обновил целевые пути)

/* I want them here http://server.com/integracion/files/uploads/ so... */   
    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

Но я в ответ, когда загрузка завершается (и, конечно, предупреждение от nicedit ..)


        try {
            top.nicUploadButton.statusCb({"error":"Invalid Upload ID"});
        } catch(e) { alert(e.message); }
    

что мне не хватает?

-РЕДАКТИРОВАТЬ

Я думаю, что проблема может быть в файле php:

$id = $_POST['APC_UPLOAD_PROGRESS'];  /* APC is installed and enabled */
if(empty($id)) {
    $id = $_GET['id'];
}

Ответы на вопрос(2)

Ваш ответ на вопрос