from flask_wtf import FlaskForm from flask_wtf.file import FileField, FileAllowed, FileRequired from wtforms import StringField, PasswordField, BooleanField, SubmitField class UploadForm(FlaskForm): uploadFile = FileField('file', validators=[ FileRequired(message="You must specify to upload"), FileAllowed(['txt', 'gz', 'zip', 'log'], 'Log files only!') ]) submit = SubmitField('Upload')
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 23765 | Robert Cowham | Moved things down one level to psla dir to make it easier to see what belongs | ||
#2 | 23705 | Robert Cowham | Basics working in simplified form | ||
#1 | 23704 | Robert Cowham | Save before simplifying |