|
@ -56,6 +56,7 @@ class UploadForm(FlaskForm): |
|
|
option_widget=None, |
|
|
option_widget=None, |
|
|
validators=[DataRequired()], |
|
|
validators=[DataRequired()], |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
tags = StringField( |
|
|
tags = StringField( |
|
|
"Add tags, seperated by commas. No need for the '#' sign:", |
|
|
"Add tags, seperated by commas. No need for the '#' sign:", |
|
|
validators=[validators.InputRequired(), Length(2, 500)], |
|
|
validators=[validators.InputRequired(), Length(2, 500)], |
|
@ -67,7 +68,7 @@ class UploadForm(FlaskForm): |
|
|
FileAllowed(["zip"], "Zip archives only!"), |
|
|
FileAllowed(["zip"], "Zip archives only!"), |
|
|
FileRequired(), |
|
|
FileRequired(), |
|
|
FileSize( |
|
|
FileSize( |
|
|
max_size=104857600, |
|
|
max_size=1073741824, |
|
|
message="Zipfile size must be smaller than 100MB", |
|
|
message="Zipfile size must be smaller than 100MB", |
|
|
), |
|
|
), |
|
|
], |
|
|
], |
|
|