Refactor uploads GUI so that each upload POST has one progess bar, and a list of files, with partial styling

This commit is contained in:
Micah Lee 2018-05-19 22:36:08 -07:00
parent 9ec783c6a2
commit 28fe7a4cf5
6 changed files with 120 additions and 70 deletions

View file

@ -135,7 +135,7 @@ class ReceiveMode(Mode):
"""
Handle REQUEST_STARTED event.
"""
self.uploads.add(event["data"]["id"])
self.uploads.add(event["data"]["id"], event["data"]["content_length"])
self.uploads_in_progress += 1
self.update_uploads_in_progress()