diff options
-rw-r--r-- | app.py | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -134,7 +134,6 @@ def FileSizeLimit(max_bytes, magic_start=None, magic_end=None): return s = field.data.read() n = len(s) - print(max_bytes, n) if n > max_bytes: raise ValidationError(f"File size must be less than {max_bytes}B") if magic_start and not s.startswith(magic_start): |