Natywne przesyłanie obrazów nie powiedzie się
Tak dzwonię do edytora:
new nicEditor({
buttonList : ['bold','italic','underline','upload'],
iconsPath:'img/nicedit.png',
uploadURI : 'http://server.com/integracion/files/nicUpload.php'
}).panelInstance(textareaId);
I istnieje plik .php (a ja jestem w plikuDocsi zaktualizowałem ścieżki docelowe)
/* 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
Ale w odpowiedzi po zakończeniu wysyłania (i wysłaniu ostrzeżenia z nicedit ..)
<script>
try {
top.nicUploadButton.statusCb({"error":"Invalid Upload ID"});
} catch(e) { alert(e.message); }
</script>
czego mi brakuje?
-EDYTOWAĆ
Myślę, że problem może być w pliku php:
$id = $_POST['APC_UPLOAD_PROGRESS']; /* APC is installed and enabled */
if(empty($id)) {
$id = $_GET['id'];
}