From 00ab98c9cc65f93180e080fda6569944eb1a0215 Mon Sep 17 00:00:00 2001 From: navry Date: Tue, 5 Aug 2025 06:21:01 +0200 Subject: [PATCH] update --- templates/upload_form.html | 19 +++++++++++-------- test.py | 3 ++- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/templates/upload_form.html b/templates/upload_form.html index e174582..a6b09e8 100644 --- a/templates/upload_form.html +++ b/templates/upload_form.html @@ -15,14 +15,17 @@
-

- - - - -

- + +
+ + + +
+ + + +
diff --git a/test.py b/test.py index 8c75341..1afb4ab 100644 --- a/test.py +++ b/test.py @@ -15,6 +15,7 @@ def upload_file(): # Create a text file with the uploaded file name velikost = request.form['range'] + nazev_souboru = request.form['output_file'] print(velikost) body = nacti_data_z_excelu(file) @@ -25,7 +26,7 @@ def upload_file(): return send_file( path_or_file=dxf_file, as_attachment=True, - download_name='hotovson.dxf', + download_name= nazev_souboru+".dxf" or 'hotovson.dxf', mimetype='application/octet-stream' ) else: