prasathmani / tinyfilemanager

Single-file PHP file manager, browser and manage your files efficiently and easily with tinyfilemanager
https://tinyfilemanager.github.io
GNU General Public License v3.0
4.63k stars 1.63k forks source link

I am calling tinyfilemanager from a asp.net core blazor web page. I want to pass the client username info to tinyfilemanager. How can I do that? I have tried first with parameters but your code is overriding the url parameters. Isn't there any way to do that? #809

Open mut9bu opened 2 years ago

mut9bu commented 2 years ago

I am calling tinyfilemanager from a asp.net core blazor web page. I want to pass the client username info to tinyfilemanager. How can I do that? I have tried first with parameters but your code is overriding the url parameters. Isn't there any way to do that?

prasathmani commented 2 years ago

append your query param in fm_redirect


// always use ?p=
if (!isset($_GET['p']) {
    fm_redirect(FM_SELF_URL . '?p=&username='.$_GET['username']);
}
mut9bu commented 2 years ago

Hi Prasathmani I have tried this. It is working when I open the rooth path the first time. But when I enter a directory or file i immediatly get "Root Path not found"