LocalStrategy is not called when enctype='multipart/form-data'
danialkhansari opened this issue · 4 comments
danialkhansari commented
When I set enctype="multipart/form-data" in my form, the POST request does not hit my strategy. Everything's fine without multipart enctype.
dattugvs commented
can you provide your passport strategy and its calling (passport-local triggering) code to find out the problem easily.
jaredhanson commented
What use case do you have that requires a login form to be submitted with multipart/form-data
rather than application/x-www-form-urlencoded
?
jucamo0713 commented
i have the same problem, in my use case the login valid if a image contain a face.
PhelixTaken commented
Does someone know a fix? I need multipart/form-data
for file uploading, but at the same time login the user.