mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2026-04-26 19:05:54 +03:00
[GH-ISSUE #1012] Add date prefix to uploaded files #654
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#654
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 @dotcomUNDERGROUND on GitHub (Apr 7, 2023).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/1012
I wish to auto add a date prefix to uploaded file names.
Like "DSC_1234.jpg" becomes "2023-04-08 DSC_1234.jpg"
How can I modify the code to achieve this?
@prasathmani commented on GitHub (Apr 8, 2023):
github.com/prasathmani/tinyfilemanager@6a6eb8abec/tinyfilemanager.php (L938)@dotcomUNDERGROUND commented on GitHub (Apr 8, 2023):
Thanks!
I tried this:
But it's not working
@ner00 commented on GitHub (Apr 10, 2023):
Apparently it doesn't work because it uses
$fullPathinstead to rename the temporary filename, change this:github.com/prasathmani/tinyfilemanager@6a6eb8abec/tinyfilemanager.php (L1000)to:
@dotcomUNDERGROUND commented on GitHub (Apr 10, 2023):
Worked!
Thank you!