summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.py b/main.py
index a4766b1..2309bf8 100644
--- a/main.py
+++ b/main.py
@@ -50,7 +50,7 @@ def create_app(test_config=None):
50 def remove_file(response): 50 def remove_file(response):
51 os.remove(complete_path) 51 os.remove(complete_path)
52 return response 52 return response
53 return send_from_directory(app.config['UPLOAD_FOLDER'], filepath) 53 return send_from_directory(app.config['UPLOAD_FOLDER'], filepath, as_attachment=True)
54 54
55 @app.route('/', methods=['GET', 'POST']) 55 @app.route('/', methods=['GET', 'POST'])
56 def upload_file(): 56 def upload_file():
@@ -180,7 +180,7 @@ def create_app(test_config=None):
180 os.remove(complete_path) 180 os.remove(complete_path)
181 return response 181 return response
182 182
183 return send_from_directory(app.config['UPLOAD_FOLDER'], filepath) 183 return send_from_directory(app.config['UPLOAD_FOLDER'], filepath, as_attachment=True)
184 184
185 class APIBulkDownloadCreator(Resource): 185 class APIBulkDownloadCreator(Resource):
186 schema = { 186 schema = {