diff options
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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 = { |
