unable to crop or resize when custom path
coolibry opened this issue · comments
Hello,
i use custom path with subfolder :
new Jodit('#Test_Jodit', {
uploader: {
url: './vendor/jodit/index.php?action=fileUpload',
prepareData: function (formdata) {
formdata.append('path', "data/test");
return formdata;
},
},
filebrowser: {
ajax: {
url: './vendor/jodit/index.php',
prepareData: function (data) {
if (!data.path){
data.path = "data/test";
}
return data;
},
}
}
});
when picture added i can clic edit,
then i want to resize or crop and problem appear,
in sources/FileSystem.php line 536 :
$root = $this->getPath(); //get complet path
//path value contain subfolder information, just remove it
$path = basename($path); //return only filename
solution is to get basename of $path.