Rename file after upload #1459
Unanswered
CaptainLoop
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to create an event for renaming the file after it uploads. I want to include the timestamp, but I can't get it right. How can I do it?
I created an event action:
Type: Filesystem
Fs Action: Rename
Action.
Source Path: /data/{{Name}}/UPLOAD/{{VirtualPath}}
Destination Path /data/{{Name}}/UPLOAD/{{VirtualPath}}-{{Timestamp}}
and an event Rule, that includes a user test123.
In the logs, I got this message:
Nov 16 17:41:38 serversftp sftpgo[115599]: {"level":"debug","time":"2023-11-16T17:41:38.629","sender":"HTTP","connection_id":"HTTP_clb4cgi3235000ps7350","message":"requested modification time 2023-06-22 23:48:02.816 +0200 CEST for file \"/UPLOAD/testfile.txt\", error: permission denied"}
Nov 16 17:41:38 serversftp sftpgo[115599]: {"level":"error","time":"2023-11-16T17:41:38.630","sender":"eventmanager","message":"unable to execute action \"renameWithTimestamp\" for rule \"Rename File with TimeStamp\", elapsed 1.503387ms, err: action \"renameWithTimestamp\" failed: fs rename failed for users: test123"}
Beta Was this translation helpful? Give feedback.
All reactions