mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +00:00
fix: [paste_submit UI] filter empty file field
This commit is contained in:
parent
601ea8f13e
commit
0d3d4aae1d
1 changed files with 5 additions and 4 deletions
|
@ -295,6 +295,7 @@ def submit():
|
||||||
paste_content = request.form['paste_content']
|
paste_content = request.form['paste_content']
|
||||||
|
|
||||||
is_file = False
|
is_file = False
|
||||||
|
if 'file' in request.files:
|
||||||
file = request.files['file']
|
file = request.files['file']
|
||||||
if file:
|
if file:
|
||||||
if file.filename:
|
if file.filename:
|
||||||
|
|
Loading…
Reference in a new issue