helapkg / hela

:icecream: Powerful software development experience and management. Enhancing @tc39 JS, @denoland and @nodejs, because we need a bit of magic. :sparkles: You can think of it as Cargo for the JavaScript ecosystem.
Mozilla Public License 2.0
331 stars 41 forks source link

How to save uploaded files in folder which name is session id in cookie? #169

Closed budarin closed 5 years ago

budarin commented 5 years ago

HI!

Default settings dont willing me to have an access to ctx in formidable foem event handlers. How to set path to folder which name is session id from cookie?

tunnckoCore commented 5 years ago

You can move the file. That's the current situation, because for the uploading we relying on Formidable, which has dozen of problems regarding similar cases. I'm sorry about that. There we have few issues with some workarounds, you can check them :)