elFinder icon indicating copy to clipboard operation
elFinder copied to clipboard

tmb returned with getFileCallback is missing url after upload

Open billynoah opened this issue 3 years ago • 3 comments

I'm having an issue that only seems to arise when a custom path is set. After uploading a new file, the thumb is visible and everything appears fine. But when selecting the file, the object returned by getFileCallback() contains only the filename and is missing the tmbURL. This only happens immediately after uploading and everything is fine if I change views or close/open the elfinder modal.

It also only seems to happen when I am using a custom path. For example, this works fine:

URL: "https://example.com/image/catalog"
path: "/public_html/image/catalog"
tmbPath: "/public_html/image/cache/_elf_tmb"
tmbURL: "https://example.com/image/cache/_elf_tmb"
tmpPath: "/public_html/image/cache/.tmp"

But with these settings, the thumbnail url is missing after upload (the filename/hash is returned but sans url):

URL: "https://example.com/image/catalog/user_a"
path: "/public_html/image/catalog/user_a"
tmbPath: "/public_html/image/cache/_elf_tmb"
tmbURL: "https://example.com/image/cache/_elf_tmb"
tmpPath: "/public_html/image/cache/.tmp"

Is this a bug or a user error with my settings?

billynoah avatar May 05 '21 17:05 billynoah

@billynoah It may be related to the #3216 issue. I will start the investigation.

nao-pon avatar Jun 11 '21 05:06 nao-pon

@billynoah I fixed the problem with #3216. This issue may also have been fixed.

Can you see if the nightly build fixes this issue?

  • https://github.com/Studio-42/elFinder#downloads

nao-pon avatar Jun 13 '21 03:06 nao-pon

@nao-pon -sorry for the late response. I looked at your commit here: https://github.com/Studio-42/elFinder/commit/b40fcb8ca1c34dc07fbd84795c0f1d290823112a and yes that does seem to resolve the issue. Thanks!

billynoah avatar Oct 11 '21 19:10 billynoah

This issue is stale because it has been open for 50 days with no activity.

github-actions[bot] avatar Aug 11 '23 02:08 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Aug 25 '23 02:08 github-actions[bot]