formidable icon indicating copy to clipboard operation
formidable copied to clipboard

async event listeners possible?

Open akosyakov opened this issue 5 years ago • 1 comments

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?

akosyakov avatar May 09 '19 08:05 akosyakov

It is not possible currently. file.path has to be modefied sync during fileBegin otherwise it has no effect

GrosSacASac avatar Nov 26 '19 10:11 GrosSacASac

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

GrosSacASac avatar Jun 16 '23 16:06 GrosSacASac

I believe this issue is fixed by https://github.com/node-formidable/formidable/pull/855

GrosSacASac avatar Jun 28 '23 22:06 GrosSacASac