-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
file validators correctly identify empty data
closes #276 - `FileField` is no longer deprecated. The data is checked during processing and only set if it's a valid file. - `has_file` *is* deprecated; it's now equivalent to `bool(field.data). - `FileRequired` and `FileAllowed` work with both the Flask-WTF and WTForms `FileField` classes. - The `Optional` validator now works with `FileField`.
- Loading branch information
Showing
2 changed files
with
34 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters