我们从Python开源项目中,提取了以下42个代码示例,用于说明如何使用wtforms.fields.FileField()。
def convert_BlobProperty(model, prop, kwargs): """Returns a form field for a ``db.BlobProperty``.""" return f.FileField(**kwargs)
def convert_BlobKeyProperty(self, model, prop, kwargs): """Returns a form field for a ``ndb.BlobKeyProperty``.""" return f.FileField(**kwargs)
def postprocess_form(self, form_class): form_class.upload = fields.FileField('Image') form_class.preview = ImagePreviewField("") return form_class