mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2026-04-27 03:15:50 +03:00
[GH-ISSUE #847] image preview does not work when it specifies a different root_path #573
Labels
No labels
Feature
Feature
Is It Really an Issue?
Need More Info
Request
Security
bug
duplicate
enhancement
enhancement
help wanted
invalid
pull-request
question
suggestion
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tinyfilemanager#573
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yigitcevik on GitHub (Aug 30, 2022).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/847
I am giving the path to a different file for the directory path. However, when I do this, previews of the images do not work. The preview works only if $root_path = $_SERVER['DOCUMENT_ROOT'].
$use_auth = false;
$root_path = '/xampp/htdocs/website/images';
$root_url = '';
Image1
Image2
@prasathmani commented on GitHub (Aug 31, 2022):
update
$root_urlaccordingly to work. #329@yigitcevik commented on GitHub (Aug 31, 2022):
I've tried what you said and researched the problems and tried other solutions, but it's still the same. I tried to enter all kinds of root_url but it didn't work. I uploaded the files to hosting, the new root_path is as follows. What kind of a root_url do I need to write for this?
$use_auth = false;
$root_path = '/home/user/public_html/new/website/images';
@prasathmani commented on GitHub (Sep 1, 2022):
I hope
$_SERVER['DOCUMENT_ROOT']andhome/user/public_htmlare pointing to same path.Image preview will not working if
$root_pathwill be outside of server document root