upload gets to processing step

This commit is contained in:
2021-10-22 22:56:48 -06:00
parent 381d8ca620
commit a06142c953
+4
View File
@@ -66,6 +66,10 @@ def upload():
if file.filename == '': if file.filename == '':
flash('No selected file') flash('No selected file')
return redirect(request.url) 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): if file and allowed_file(file.filename):
# todo validity check before processing # todo validity check before processing
filename, error = process_file(filetype, file) filename, error = process_file(filetype, file)