Closed xHyroM closed 2 years ago
Thanks I will look into it
published 3.2.1
No
Ah this is frustrating, if the latest is v2, then it made sense to be at least in v2 as well...
I just used express-fileupload instead.
Thanks, but it's suddenly working for me on v2 as well.
Dammit. I'm not gonna change my entire import system. I guess I'll have to look for another module.
There is dynamic import so you can import inside your function like this
async function uploadfile() {
const formidable = await import("formidable");
}
Support plan
Context
What are you trying to achieve or the steps to reproduce?
What was the result you got?
It throws an error, but it saves an empty file in the uploads/ folder.
What result did you expect?
It throws an error, the file is not saved