mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2026-04-26 19:05:54 +03:00
[GH-ISSUE #907] Download and Direct link problems when using with a subfolder... #598
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#598
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 @carlpeer on GitHub (Dec 2, 2022).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/907
Case 1:
$root_path = $_SERVER['DOCUMENT_ROOT'].'/subfolder';
$root_url = '';
When using this: download works, but direct link doesn't work.
Case 2:
$root_path = $_SERVER['DOCUMENT_ROOT'].'/subfolder';
$root_url = '/subfolder';
When using this: download works, and direct link works, but when you login with this config you will receive a page not found, because the path to the script becomes: http://url/subfolder/subfolder/index.php
So, the subfolder is a second time in the path.
Problem 2:
Download doesn't work when you click on a filename, and use 'download' on that screen... No download starts and the script returns to the main view with all the files.
@prasathmani commented on GitHub (Dec 2, 2022):
@carlpeer thanks for reporting the issue. try following config,
please share some screenshots, it will be helpful to fix.
@carlpeer commented on GitHub (Dec 2, 2022):
@prasathmani Thank you for your support!
You will see the page not found error
See the screenshot below for the download button that doesn't work...
@prasathmani commented on GitHub (Dec 2, 2022):
@carlpeer , thanks for sharing, Let me check.
@prasathmani commented on GitHub (Dec 3, 2022):
@carlpeer, download issues is fixed now. try with latest version.