Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download and Direct link problems when using with a subfolder... #907

Closed
carlpeer opened this issue Dec 2, 2022 · 4 comments
Closed

Download and Direct link problems when using with a subfolder... #907

carlpeer opened this issue Dec 2, 2022 · 4 comments

Comments

@carlpeer
Copy link

carlpeer commented Dec 2, 2022

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
Copy link
Owner

@carlpeer thanks for reporting the issue. try following config,

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

please share some screenshots, it will be helpful to fix.

@carlpeer
Copy link
Author

carlpeer commented 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...

download

@prasathmani
Copy link
Owner

@carlpeer , thanks for sharing, Let me check.

@prasathmani
Copy link
Owner

@carlpeer, download issues is fixed now. try with latest version.

ner00 pushed a commit to ner00/tinyfilemanager that referenced this issue May 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants