Merhaba arkadaşlar,
Trumbowyg Editor kullanıyorum ve
şu sayfadaki resim upload ayarlarını yapmama rağmen sürekli hata veriyor. Kodlarım aşağıda, yardımcı olacak bir arkadaş var mı?
Client: <script>
$('#editor').trumbowyg({
btnsDef: {
// Create a new dropdown
image: {
dropdown: ['insertImage', 'upload'],
ico: 'insertImage'
}
},
// Redefine the button pane
btns: [
['viewHTML'],
['formatting'],
['strong', 'em', 'del'],
['superscript', 'subscript'],
['link'],
['image'], // Our fresh created dropdown
['base64'],
['table'],
['justifyLeft', 'justifyCenter', 'justifyRight', 'justifyFull'],
['unorderedList', 'orderedList'],
['horizontalRule'],
['removeformat'],
['foreColor', 'backColor'],
['fullscreen']
],
upload: {
serverPath: 'resimyukle.php',
fileFieldName: 'resim',
urlPropertyName: 'link'
}
});
</script>Server Side: <?php
$aciklama=$_POST["alt"];
$resim=$_POST["resim"];
$sonuc= array (
'success' => true,
'link' => 'favorites.png',
);
$myJSON = json_encode($sonuc);
echo $myJSON;
?>