Closed nikis closed 1 year ago
@nikis hi, very strange. It's very basic stuff and it's from the readme which is working. Maybe the problem is in the file, or it's too big or something like that.
The file I'm trying with is not big - about 500kb. It also happens with other non-video files. Everything is very random which also makes debugging difficult.
Also i add some listeners fileBegin
event is triggered
form.once('error', console.error);
form.on('fileBegin', (formname, file) => {
console.log('fileBegin', formname, file);
});
form.on('file', (formname, file) => {
console.log('file', formname, file);
});
form.on('field', (fieldName, fieldValue) => {
console.log('field', fieldName, fieldValue)
});
form.once('end', () => {
console.log('Done!');
});
Also if i set uploadDir option , actually the file is created in this directory
The problem occurs only when i use devcontainer (local machine, not in GitHub Codespaces etc). If i run outside, everything it's working as expected.
Support plan
Context
What are you trying to achieve or the steps to reproduce?
What was the result you got?
parse() callback never called with some random files
If i call without file, callback is fired and fields its filled
What result did you expect?
parse() callback to be fired always