I had a problem previewing the image through KCFinder on CKEditor on the GoDaddy hosting.
When I select an image from KCFinder, the preview loads correctly on my local computer, but when I check GoDaddy, it does not display correctly. The difference can be seen from the following images.
I configured the file browser in CKEditor as shown below.
config.filebrowserBrowseUrl = '../admin/kcfinder/browse.php?type=files'; config.filebrowserImageBrowseUrl = '../admin/kcfinder/browse.php?type=media'; config.filebrowserFlashBrowseUrl = '../admin/kcfinder/browse.php?type=flash'; config.filebrowserUploadUrl = '../admin/kcfinder/upload.php?type=files'; config.filebrowserImageUploadUrl = '../admin/kcfinder/upload.php?type=media'; config.filebrowserFlashUploadUrl = '../admin/kcfinder/upload.php?type=flash';
And the KCFinder session is as follows
$_SESSION['KCFINDER']['uploadURL'] = "../upload"; $_SESSION['KCFINDER']['uploadDir'] = "../upload"; $_SESSION['KCFINDER']['disabled'] = false;
Preview image in my localhost.

Preview image hosted by GoDaddy

The main problem: I cannot get the "upload /" directory in the url. You can see the difference in the images above.
Can anyone help how to solve this problem?
Thanks in advance.
source share