[GH-ISSUE #1103] Hover not showing preview of image file #704

Closed
opened 2026-03-02 16:00:55 +03:00 by kerem · 1 comment
Owner

Originally created by @focussing on GitHub (Oct 27, 2023).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/1103

This is a great project!
I have one issue which is blocking for me.
When I change the default $root_path = $_SERVER['DOCUMENT_ROOT'] to $root_path = $_SERVER['DOCUMENT_ROOT'].'/uploads'; and hover over an image file the preview is not shown.
Also when I select the image file it is not shown in the document viewer also.
When I leave the $root_path as original this all works fine.

Setting the root path is important for me because I only want the users to access the uploads folder.
How can I fix this?

Originally created by @focussing on GitHub (Oct 27, 2023). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/1103 This is a great project! I have one issue which is blocking for me. When I change the default `$root_path = $_SERVER['DOCUMENT_ROOT']` to `$root_path = $_SERVER['DOCUMENT_ROOT'].'/uploads';` and hover over an image file the preview is not shown. Also when I select the image file it is not shown in the document viewer also. When I leave the $root_path as original this all works fine. Setting the root path is important for me because I only want the users to access the uploads folder. How can I fix this?
kerem closed this issue 2026-03-02 16:00:55 +03:00
Author
Owner

@focussing commented on GitHub (Oct 27, 2023):

Found it!
This setting has to be changed as well. Maybe this can be simplified?

// Root url for links in file manager.Relative to $http_host. Variants: '', 'path/to/subfolder'
// Will not working if $root_path will be outside of server document root
$root_url = '/uploads';

<!-- gh-comment-id:1782404264 --> @focussing commented on GitHub (Oct 27, 2023): Found it! This setting has to be changed as well. Maybe this can be simplified? // Root url for links in file manager.Relative to $http_host. Variants: '', 'path/to/subfolder' // Will not working if $root_path will be outside of server document root $root_url = '/uploads';
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tinyfilemanager#704
No description provided.