For example, if you try to upload 2 files that are both too big, you get a weird uncaught error
TypeError: path must be a string at TypeError (native) at Object.fs.unlink (fs.js:927:11)
And this seems to be because on the first error, it unlinks the uploaded files, and deletes their filepath and other properties, then on the 2nd error, the filepath property does not exist on the uploaded files, and so this weird uncaught error occurs and crashes the process.
For example, if you try to upload 2 files that are both too big, you get a weird uncaught error
TypeError: path must be a string at TypeError (native) at Object.fs.unlink (fs.js:927:11)And this seems to be because on the first error, it unlinks the uploaded files, and deletes their filepath and other properties, then on the 2nd error, the filepath property does not exist on the uploaded files, and so this weird uncaught error occurs and crashes the process.