[GH-ISSUE #677] Problem with generate file path $file_url #478

Open
opened 2026-03-02 15:59:04 +03:00 by kerem · 0 comments
Owner

Originally created by @baur on GitHub (Dec 9, 2021).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/677

Problem with generate file path $file_url

$file_url genrates right with this settings

$root_path = $_SERVER['DOCUMENT_ROOT'].'/fm/data';
$root_url = '';

for some users works with next settings

$root_path = $_SERVER['DOCUMENT_ROOT'].'/fm/data';
$root_url = '/fm/data';

and I need filx $file_url before document preview

$fixed_file_url = str_replace("datafm/", "", fm_enc($file_url));

Because in some users appears extra string datafm/ in $file_url

All of users works with Window10 and Chrome browser

Originally created by @baur on GitHub (Dec 9, 2021). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/677 Problem with generate file path $file_url $file_url genrates right with this settings ```php $root_path = $_SERVER['DOCUMENT_ROOT'].'/fm/data'; $root_url = ''; ``` for some users works with next settings ```php $root_path = $_SERVER['DOCUMENT_ROOT'].'/fm/data'; $root_url = '/fm/data'; ``` and I need filx $file_url before document preview ```php $fixed_file_url = str_replace("datafm/", "", fm_enc($file_url)); ``` Because in some users appears extra string `datafm/` in $file_url All of users works with Window10 and Chrome browser
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#478
No description provided.