Skip to content

EISDIR Error #423

Description

@JCarlos12

I tried to submit a form with no file selected.
I get an EISDIR error.

Is there anyway to catch no file selected error

here is my code snippet

    var form = new formidable.IncomingForm();
    var uploadPath = [];
    
    form.on('fileBegin', function (name, file) {
    		file.path = __dirname + '/upload/' + file.name;
	});
    
    form.on('file', function (name, file) {
		uploadPath.push(file.name);
	});
    
    form.parse(req, function (err, fields, files) {	
    	console.log(uploadPath)
    });

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions