diskStorage will write files using a fs.WriteStream so the file will not be kept in memory.Thank you very much for your quick reply.
The question may be a bit strange because I am not good at English.
I'll ask you one more thing...
Is it true that there is no upload failure due to memory?
(I use diskStation)
If you are using diskStorage there should be no failure due to memory.
It will only keep small chunks of the file in memory at a time, so even when uploading huge files it shouldn't use that much memory at all.
Most helpful comment
diskStoragewill write files using afs.WriteStreamso the file will not be kept in memory.