mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-03 11:56:06 -04:00
Rename uploaded files
This commit is contained in:
parent
06693bded2
commit
880a21086c
2 changed files with 15 additions and 2 deletions
|
@ -160,7 +160,7 @@ class ReceiveMode(Mode):
|
|||
"""
|
||||
Handle REQUEST_UPLOAD_FILE_RENAMED event.
|
||||
"""
|
||||
pass
|
||||
self.uploads.rename(event["data"]["id"], event["data"]["old_filename"], event["data"]["new_filename"])
|
||||
|
||||
def handle_request_upload_finished(self, event):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue