mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2026-04-26 19:05:54 +03:00
[GH-ISSUE #305] replace files #224
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#224
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 @ivavid on GitHub (Feb 14, 2020).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/305
My question seems to be related to the behavior described in issue #138. Basically, I'm asking for file replacement behavior.
When uploading files with the same name already present, the file is not replaced, but instead the uploaded filename is suffixed with the date and time.
For example, uploading
index.html, it is renamed toindex_200214144111.htmlifindex.htmlis already present. I expect it to replace the file.How can this behavior be changed so that same name files get replaced? I couldn't find anything in the Wiki about it.
@EV-soft commented on GitHub (Feb 14, 2020):
Try change:
$override_file_name = false;to
$override_file_name = true;at / near line 782
@prasathmani ?:

@ivavid commented on GitHub (Feb 22, 2020):
that worked. thanks!
@it-toppp commented on GitHub (May 15, 2022):
How can overwrite be activated when copying files or directories?