Skip to content

EISDIR Error #423

@JCarlos12

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)
    });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions