I want to upload 2 images from temp folder to mongodb,
I can create write and read streams for one image but lost idea for two files.
I can pipe for one image but not two.
When I try array medthod, it replys "TypeError: Cannot read property 'filename' of undefined" ERROR.
My goal is to upload two files to mongodb in one method or what ever at once.
I want to upload 2 images from temp folder to mongodb,
I can create write and read streams for one image but lost idea for two files. I can pipe for one image but not two. When I try array medthod, it replys "TypeError: Cannot read property 'filename' of undefined" ERROR. My goal is to upload two files to mongodb in one method or what ever at once.
How can I have done ?