mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2026-04-26 10:55:56 +03:00
[GH-ISSUE #1275] Saving the config causes the loss of settings #819
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#819
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 @outdoorbits on GitHub (Jan 22, 2025).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/1275
In my project little-backup-box tinyfilemanager does a great job, thank you for that!
But I have a problem: After saving new settings like show hidden files, my config.php changes from
<?php $use_auth = false; $root_path = "/var/www/tinyfilemanager/media"; $root_url = "files/media"; $max_upload_size_bytes = 1048576000; ?>to
<?php //Default Configuration $CONFIG = '{"lang":"en","error_reporting":false,"show_hidden":true,"hide_Cols":false,"theme":"light"}'; $root_url = "files/media"; $max_upload_size_bytes = 1048576000; ?>This means the lost of $use_auth and $root_path. Is there a way to prevent that?
I would expect the setup to hold any other settings. Is there an error in my config file?
@prasathmani commented on GitHub (Jan 23, 2025):
don't change the first two lines, it will be overwritten when you save the setting, you can include your configuration after the first two lines.
@outdoorbits commented on GitHub (Jan 23, 2025):
Thank you, it works!!!