From a06142c9538fdcf4463418ade21de0fb9218ae8a Mon Sep 17 00:00:00 2001 From: Eric Phillips Date: Fri, 22 Oct 2021 22:56:48 -0600 Subject: [PATCH] upload gets to processing step --- flaskfdx/dashboard.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flaskfdx/dashboard.py b/flaskfdx/dashboard.py index 37ec70f..999e1d3 100644 --- a/flaskfdx/dashboard.py +++ b/flaskfdx/dashboard.py @@ -66,6 +66,10 @@ def upload(): if file.filename == '': flash('No selected file') return redirect(request.url) + if 'recordtype' not in request.form: + flash('Record type not selected') + return redirect(request.url) + filetype = request.form.get('recordtype') if file and allowed_file(file.filename): # todo validity check before processing filename, error = process_file(filetype, file)