file-upload-with-angularjs-and-nodejs
file-upload-with-angularjs-and-nodejs copied to clipboard
Reference for Multifile upload
Hi Rahil,
Thanks for sharing nice article of file upload. I have a requirement where User wants to upload Trade file, He has to detached sign it locally with a valid CA certificate and then upload both Trade file and respective signed file simultaneously. This is required for data integrity of the end-user. E.g. Trade file name : Trade1.txt User signs file locally and creates Trade1_Signature.txt (detached signature of Trade1.txt) Now while uploading, User has to select and upload both the files simultaneously.
Can you please share reference or any tips for handling the same in angular with nodejs.
Thanks & Regards, SJ
Checkout the fields option for multer. Using that you can upload files in different fields in the same request.
https://github.com/expressjs/multer
@rahil471 so only by doing some minor changes in html and nodejs part to upgrade it to multi-file upload, it should work??
"LIMIT_UNEXPECTED_FILE" this is the error i get in the response. Please help