This commit is contained in:
Stephan Porada 2020-01-07 13:05:44 +01:00
parent f189460543
commit 0b0838f6e0

View File

@ -71,7 +71,7 @@ class AddOCRJobForm(FlaskForm):
class AddMergeImagesJobForm(FlaskForm):
files = MultipleFileField('Files', validators=[DataRequired()])
def validate_files(form, filed):
def validate_files(form, field):
for file in field.data:
if not file.filename.lower().endswith(('.jpeg', '.jpg', '.png',
'.tiff', '.tif')):