From d9bb875a27526be5acea8d7d364333515204780a Mon Sep 17 00:00:00 2001 From: Daniel Markstedt Date: Thu, 23 Sep 2021 08:45:46 -0700 Subject: [PATCH] Unzip and delete zip files after upload; validate upload file suffix --- src/web/requirements.txt | 1 + src/web/templates/index.html | 1 + src/web/web.py | 9 ++++++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/web/requirements.txt b/src/web/requirements.txt index e853db3d..bd0bdec8 100644 --- a/src/web/requirements.txt +++ b/src/web/requirements.txt @@ -12,3 +12,4 @@ zope.event==4.5.0 zope.interface==5.1.2 protobuf==3.17.3 pydrop==0.0.6 +zipfile \ No newline at end of file diff --git a/src/web/templates/index.html b/src/web/templates/index.html index 96afc8c3..12300b01 100644 --- a/src/web/templates/index.html +++ b/src/web/templates/index.html @@ -180,6 +180,7 @@