₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,326,929 members, 8,428,693 topics. Date: Wednesday, 17 June 2026 at 08:14 PM

Toggle theme

How Can I Post Multiple Files Using Multer In Node Js - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingHow Can I Post Multiple Files Using Multer In Node Js (904 Views)

1 Reply (Go Down)

How Can I Post Multiple Files Using Multer In Node Js by ricson11(op): 9:07pm On Apr 18, 2020
Have been trying to post multiple files using multer but is not going but single file is working using upload. single () but the array or any is not working.
Re: How Can I Post Multiple Files Using Multer In Node Js by talk2hb1(m): 8:15am On Apr 19, 2020
ricson11:
Have been trying to post multiple files using multer but is not going but single file is working using upload. single () but the array or any is not working.
Were you able to get the array of files?
If yes then loop through the array off files
Re: How Can I Post Multiple Files Using Multer In Node Js by ricson11(op): 1:57am On Apr 20, 2020
talk2hb1:
Were you able to get the array of files?
If yes then loop through the array off files
I was able to but is not showing in my index page . <img src="{{images}}" /> this is how I rendered it in my frontend the images is my input file name but still not showing but a single upload is showing I don't know why even the upload.fields() too is not showing but when I console log it I will see them and also when I upload they will show in the upload folder but not showing in html page
Re: How Can I Post Multiple Files Using Multer In Node Js by talk2hb1(m): 12:41pm On Apr 20, 2020
ricson11:
I was able to but is not showing in my index page . <img src="{{images}}" /> this is how I rendered it in my frontend the images is my input file name but still not showing but a single upload is showing I don't know why even the upload.fields() too is not showing but when I console log it I will see them and also when I upload they will show in the upload folder but not showing in html page
Why not try upload it to your local server, if you can upload it to your local server then you should be able to upload it to cloudinary.
Re: How Can I Post Multiple Files Using Multer In Node Js by ricson11(op): 8:01am On Apr 21, 2020
talk2hb1:
Were you able to get the array of files?
If yes then loop through the array off files
yes the problem that is not showing in the frontend but a single file is showing when uploaded.
Re: How Can I Post Multiple Files Using Multer In Node Js by ricson11(op): 8:04am On Apr 21, 2020
talk2hb1:
Why not try upload it to your local server, if you can upload it to your local server then you should be able to upload it to cloudinary.
I don't understand they are successfully showing in the uploaded folder in my local server but not showing in the frontend so I don't know if I upload it to cloudinary whether they will show or not
1 Reply

I Have This Annoying Bug In Node Js For The Past 5 Days..helpBuilding An API In Node.js And Taking It Live On A VPSFile Upload With Multer In Node.js And Express234

Play Games, Earn Money (100% Free)Python Coding ChallengeFREE Software Engineering Training For Women, Plus Internship & Job Placement