mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-24 00:51:19 -04:00
Receive mode puts files in a directory based on the timestamp of the upload
This commit is contained in:
parent
8f40553e09
commit
2c45f6851e
6 changed files with 16 additions and 47 deletions
|
@ -394,10 +394,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
|
|||
mode.handle_request_upload_finished(event)
|
||||
|
||||
if event["type"] == Web.REQUEST_ERROR_DOWNLOADS_DIR_CANNOT_CREATE:
|
||||
Alert(self.common, strings._('error_cannot_create_downloads_dir').format(self.common.settings.get('downloads_dir')))
|
||||
|
||||
if event["type"] == Web.REQUEST_ERROR_DOWNLOADS_DIR_NOT_WRITABLE:
|
||||
Alert(self.common, strings._('error_downloads_dir_not_writable').format(self.common.settings.get('downloads_dir')))
|
||||
Alert(self.common, strings._('error_cannot_create_downloads_dir').format(event["data"]["receive_mode_dir"]))
|
||||
|
||||
if event["type"] == Web.REQUEST_OTHER:
|
||||
if event["path"] != '/favicon.ico' and event["path"] != "/{}/shutdown".format(mode.web.shutdown_slug):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue