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

Thumbnail URL in getFileCallback #269

Closed
rosko opened this issue Apr 16, 2012 · 1 comment
Closed

Thumbnail URL in getFileCallback #269

rosko opened this issue Apr 16, 2012 · 1 comment
Milestone

Comments

@rosko
Copy link

rosko commented Apr 16, 2012

The situation:
ElFinder installed with the following configuration - commandOptions -> getfile -> onlyURL = false
If I select a file, then handler specified in getFileCallback gets js-object with information about the selected file. In particular, there is thumbnail image URL.

When I click on the file 1, I get the correct thumbnail URL
When I click on the file 2 - all ok.
When I click on the file 1 again, I get wrong thumbnail URL that looks like this:
{thumbnails folder URL}{thumbnails folder URL}{thumbnail file}
Once again I click on the file and thumbnail URL looks like this:
{thumbnails folder URL}{thumbnails folder URL}{thumbnails folder URL}{thumbnail file}

That is, every time I click on the file a thumbnails folder URL is added in front.
As far as I understand the error in the file js/commands/getfile.js in lines 71-73.
Need to add a check if the thumbnail URL (file.tmb) already contains a folder URL (tmb), then nothing to add.

@ferampe
Copy link

ferampe commented May 28, 2012

Hello, you found a solution

okdistribute pushed a commit to ContinuumIO/elFinder that referenced this issue Oct 24, 2013
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

3 participants