Skip to content

Commit 05e4743

Browse files
lyyh3ctunnckoCore
authored andcommitted
to solve EISDIR error (node-formidable#424)
* to solve EISDIR error to solve EISDIR error when trying to submit a form with no file selected. * del .ideal and modify incoming_form remove needless .idea things and change the condition to !part.filename * remove needless .idea remove needless .idea
1 parent b81d1c7 commit 05e4743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/incoming_form.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ IncomingForm.prototype.onPart = function(part) {
182182
IncomingForm.prototype.handlePart = function(part) {
183183
var self = this;
184184

185-
if (part.filename === undefined) {
185+
if (!part.filename) {
186186
var value = ''
187187
, decoder = new StringDecoder(this.encoding);
188188

0 commit comments

Comments
 (0)