sunhater / kcfinder

KCFinder web file manager
http://kcfinder.sunhater.com
402 stars 209 forks source link

Custom image folder issues #162

Closed stephenhodgkiss closed 6 years ago

stephenhodgkiss commented 7 years ago

Hi,

I am trying to configure kcfinder to use a custom folder. The folder is being created when first accessed and also the sub-folder called images within that folder.

However, when uploading an image it is ignoring that structure and instead creates another folder above it, where it then uploads the image. This then results in an invalid url for the location of the image.

My config.php has been changed to include the following lines: -

'uploadURL' => "/uploads/"."myusername",
'uploadDir' => "/var/www/html/domain.com/uploads/"."myusername",

I tried having just the uploadDir as an empty string ... does not work. I tried specifying the full website url rather than the local structure ... does not work.

Please advise me on what is wrong.