from flask_wtf import FlaskForm
from flask_wtf.file import FileField, FileRequired, FileAllowed
from wtforms import PasswordField, BooleanField, SubmitField
from wtforms.fields.html5 import EmailField
from wtforms.validators import DataRequired


class PhotoForm(FlaskForm):
    photo = FileField('Add image', validators=[FileRequired(), FileAllowed(
        ['jpg', 'png'], 'Images(png, jpg) only')])
    submit = SubmitField('Submit image')

7f46abbaa67f5f458fbb5ecb73c6ddbc37bfd11e
<mask token>

<mask token>


class PhotoForm(FlaskForm):
    <mask token>
    <mask token>

<mask token>


class PhotoForm(FlaskForm):
    photo = FileField('Add image', validators=[FileRequired(), FileAllowed(
        ['jpg', 'png'], 'Images(png, jpg) only')])
    submit = SubmitField('Submit image')

from flask_wtf import FlaskForm
from flask_wtf.file import FileField, FileRequired, FileAllowed
from wtforms import PasswordField, BooleanField, SubmitField
from wtforms.fields.html5 import EmailField
from wtforms.validators import DataRequired


class PhotoForm(FlaskForm):
    photo = FileField('Add image', validators=[FileRequired(), FileAllowed(
        ['jpg', 'png'], 'Images(png, jpg) only')])
    submit = SubmitField('Submit image')
