Elfinder: startPathHash not working

Created on 13 Apr 2018  ·  4Comments  ·  Source: Studio-42/elFinder

Hi, I'm trying to set my startPathHash to an subfolder but it doesn't seem working. Can you help me?

Here is my main.mce.js file:

var volumeId = 'l1_';</br>
var path = 'PortalBanner';
var hash = volumeId + btoa(path).replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, '.').replace(/\.+$/, '');

```javascript
opts={
startHashPath: 'l1_RG9jdW1lbnRvc0V4dGVybm9z'
}

And my `connector.minimal.php` file:

```php
array(
     'debug' => true,
     'driver'        => 'LocalFileSystem',
     'path'          => '/path/to/files/',
     'URL'           => 'http://localhost/to/files/',
     'alias'         => 'Global',
     'trashHash'     => 't1_Lw',
     'winHashFix'    => DIRECTORY_SEPARATOR !== '/',
     'uploadAllow'   => array('all'),
     'uploadDeny'    => array('application/x-msdownload','application/x-sh', 'application/javascript'),
      'uploadOrder'   => array('allow', 'deny'),
     'accessControl' => 'access',(OPTIONAL)
     'attributes' => array(
            array(// hide anything else
            'pattern' => '!^/.tmb|.quarantine|.trash|.json|thumbs!',
            'hidden' => true
            )
          )
        )
//Array trash...

Subfolder:
issue-elf

URL:
image

question

All 4 comments

@Kreyco Since the hash value of the URL takes precedence, please access without hashing the URL.

Hi, I didn't use the hashing directly, I call my URI www.site.com/elfinder but elFinder use the hashing by itself.

@Kreyco You say startHashPath, it is correctly startPathHash.

opts={
 startHashPath: 'l1_RG9jdW1lbnRvc0V4dGVybm9z'
}

to

opts={
  startPathHash: 'l1_RG9jdW1lbnRvc0V4dGVybm9z'
}

Shame on me...You're right, It was my mistake. 🤦‍♂️ Thank you!

Was this page helpful?
0 / 5 - 0 ratings