upload gets to processing step
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user