Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with relative path without folder name in roots for localfilesystem connector #2329

Closed
kruvas opened this issue Dec 13, 2017 · 3 comments
Assignees

Comments

@kruvas
Copy link

kruvas commented Dec 13, 2017

hello, i stuck with problem - i need to set path relative to connector folder on above level without setting exact folder name. i.e.
../../
but this trick not work - i can see root dir on initial refresh. but when i try to work with files and folder - elfinder say that it "file not found" "folder not found"
only work like this
../../../folderName/

i think its because connector elfinder treat last parent folder ident (..) as folder name and remove last slash and when compare child folder/file path against root folder path - comparison failed

how to solve this problem without setting exact folder name of root?

ps I teston on latest versions 2.1.28 +

@nao-pon
Copy link
Member

nao-pon commented Dec 13, 2017

@kruvas Can you use PHP constant __DIR__ in your case?

@kruvas
Copy link
Author

kruvas commented Dec 13, 2017

i think no (or dont want). i need portable version with constant settings that i can copy to folder to work with his files.
obviously i can calc absolute path of needed relative path, but this problem with elfinder didn't disappear with that solution )
also for root folder in function _normpath in /php/elFinderVolumeLocalFileSystem.class.php exist workaround. so maybe similar need for relative path without foldername

@nao-pon nao-pon self-assigned this Dec 14, 2017
@nao-pon
Copy link
Member

nao-pon commented Dec 14, 2017

@kruvas elFinder converts the path based on the given path and "cwd ()" to an absolute path. A bug was found in the conversion process so I will fix this.

Thanks! 👍

JupiterJones added a commit to JQueryWidgetKit/elFinder that referenced this issue Dec 19, 2017
…side

* 'master' of github.com:JQueryWidgetKit/elFinder: (818 commits)
  fix Studio-42#2336 'jp' isn't a Japanese in ISO-639 correctly it's a 'ja'
  [i18:ru] Update elfinder.ru.js (Studio-42#2335)
  update cdns
  [js:core] fix problem that options.drawString encoder does not effect
  [cmd:quicklook] show file size of the Archive preview
  [ui:dialog] fix Studio-42#2331 add CSS class name to dialog buttons
  [js:core] fix Studio-42#2332 CORS detection gives false positive on IE11
  [php:core] Don't perform abort judgment with HEAD request
  [js:core] fix duplicate issue of `reqid` of raw XHR request
  [cmd:quicklook] remove unnecessary code in rar preview plugin
  [cmd:paste] typo fix
  [js:options] update cdns
  [cmd:quicklook] make abortable and CORS support to RAR Archive preview plugin
  [VD:abstract] fix Studio-42#2329 problem of getFullPath() with without folder name
  [jake] tiny correction with linter
  [js] tiny correction with linter
  [js] JavaScript syntax more strict
  [cmd:mkdir] fixed Studio-42#2326 became can not be create folder on the tree
  [php:core] fix Studio-42#2312 can't upload by "paste url or images" on IE
  [cmd:rename] allow batch rename of same mime-type items
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants