Receive mode puts files in a directory based on the timestamp of the upload

This commit is contained in:
Micah Lee 2018-10-25 21:13:16 -07:00
parent 8f40553e09
commit 2c45f6851e
6 changed files with 16 additions and 47 deletions

View file

@ -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):