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)