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: