[GH-ISSUE #1175] cannot preview files #755

Closed
opened 2026-03-02 16:01:15 +03:00 by kerem · 2 comments
Owner

Originally created by @mrxehmad on GitHub (May 10, 2024).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/1175

Cannot preview files

I just installed this file browser to /var/www/html but in Root path for file manager
$root_path = '/DATA/Guest';

/DATA/Guest is where my files are stored

files are not preview nor direct link work only download button work
Please let me know how do i resolve this issue

image

Originally created by @mrxehmad on GitHub (May 10, 2024). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/1175 # Cannot preview files I just installed this file browser to /var/www/html but in Root path for file manager `$root_path = '/DATA/Guest';` /DATA/Guest is where my files are stored files are not preview nor direct link work only download button work Please let me know how do i resolve this issue ![image](https://github.com/prasathmani/tinyfilemanager/assets/118040902/1a16d040-2450-4e8d-9e2f-16be30b8b28f)
kerem closed this issue 2026-03-02 16:01:15 +03:00
Author
Owner

@prasathmani commented on GitHub (May 10, 2024):

try this,

$root_path = $_SERVER['DOCUMENT_ROOT'].'/DATA/Guest';
$root_url = 'DATA/Guest';
<!-- gh-comment-id:2105389395 --> @prasathmani commented on GitHub (May 10, 2024): try this, ```php $root_path = $_SERVER['DOCUMENT_ROOT'].'/DATA/Guest'; $root_url = 'DATA/Guest'; ```
Author
Owner

@mrxehmad commented on GitHub (May 13, 2024):

Thanks Man

<!-- gh-comment-id:2107972254 --> @mrxehmad commented on GitHub (May 13, 2024): Thanks Man
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#755
No description provided.