Commits

danjac  committed 4028827

upload file fixes

  • Participants
  • Parent commits 88aa34b
  • Branches upload_fix

Comments (0)

Files changed (1)

File flaskext/wtf/__init__.py

             # ensure csrf validation occurs ONLY when formdata is passed
             # in case "csrf" is the only field in the form
 
-            if not formdata and not request.files:
+            if not formdata:
                 self.csrf_is_valid = False
             else:
                 self.csrf_is_valid = None