formidable
formidable copied to clipboard
async event listeners possible?
Hey 👋 i want to use async code in fileBegin
to make sure that full path exists with mkdirs
without blocking. Is it possible?
Should req.pause
before async block and req.resume
after do the trick?
It is not possible currently. file.path has to be modefied sync during fileBegin otherwise it has no effect
May I ask why you want to make sure that full path exists with mkdirs without blocking ? Because maybe your endgoal is already solved by a recent change in this library
I believe this issue is fixed by https://github.com/node-formidable/formidable/pull/855