mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2026-04-26 10:55:56 +03:00
[GH-ISSUE #383] Unable to pass root_path and root_url from another php page #283
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#283
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 @dasguptaritwik18 on GitHub (Jun 23, 2020).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/383
I want to pass root_path and root_url from another php page as session variable or post method. I have to define root_path depending on various conditions on another php page. Based on the conditions, I define root_path and want to pass the root_path to tinyfilemanager so that only this path gets opened in tinyfilemanager on a button click. Please help me in passing the root_path as a parameter from another php page.
@prasathmani commented on GitHub (Jun 23, 2020):
try to Embed the file manager instead of passing values https://github.com/prasathmani/tinyfilemanager/wiki/Embedding.
Post method will not work because file manager will reload every folder/file navigation.
@dasguptaritwik18 commented on GitHub (Jun 23, 2020):
Adding
define(FM_ROOT_PATH,"my_custom_path")
define(FM_ROOT_URL ,"my_custom_url")
will it lead me to the directory I want as root directory?
@prasathmani commented on GitHub (Jun 23, 2020):
yes, you can customize.
@dasguptaritwik18 commented on GitHub (Jun 24, 2020):
Thanks. Worked like a charm. Just another query, Is there any config settings that can make it readonly which I can pass through session?
@prasathmani commented on GitHub (Jun 25, 2020):
@dasguptaritwik18 commented on GitHub (Jun 25, 2020):
Great!! Thanks to you. Helped a lot.