When both ENFORCE_TWO_FACTOR=True and FORCE_LOGIN_FOR_APPLICATION=True, and a user does not have 2FA enabled the upload form field will fail when an upload is attempted. Once the file gets uploaded, instead of getting a 201 response as expected, a 200 is returned and the content of the response is the HTML page Permission Denied: Two factor authentication required.
When both
ENFORCE_TWO_FACTOR=TrueandFORCE_LOGIN_FOR_APPLICATION=True, and a user does not have 2FA enabled the upload form field will fail when an upload is attempted. Once the file gets uploaded, instead of getting a 201 response as expected, a 200 is returned and the content of the response is the HTML pagePermission Denied: Two factor authentication required.