Icy
How to handle file uploads
There's a very brief documentation on file upload, however it doesn't cover how to store files on the disk. Of course I could use native Node modules, like
fs
however my biggest problem is that it's all done in memory. I've also noticed that when using req.parseBody
, if there are multiple large size files being uploaded, the server response time for other endpoints increases drastically. So what would be the correct way to handle file uploads, while avoiding storing files in the memory?44 replies