jaredhanson/passport-local

LocalStrategy is not called when enctype='multipart/form-data'

danialkhansari opened this issue · 4 comments

When I set enctype="multipart/form-data" in my form, the POST request does not hit my strategy. Everything's fine without multipart enctype.

can you provide your passport strategy and its calling (passport-local triggering) code to find out the problem easily.

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?

i have the same problem, in my use case the login valid if a image contain a face.

Does someone know a fix? I need multipart/form-data for file uploading, but at the same time login the user.