Skip to content

amirkhan23/multi-file-upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multiple-File-upload-in-Node

RUN IN TERMINAL node Server.js

After that

Open localhost:3000 to view the app.

List out the image API. http://localhost:3000/api/getFilesDetails

Response Example: [{"_id":"61138bd3cef10f3f54599129","originalname":"Screenshot from 2021-08-10 16-39-08.png","mimetype":"image/png","path":"uploads/userPhoto-1628670931481-Screenshot from 2021-08-10 16-39-08.png","filename":"userPhoto-1628670931481-Screenshot from 2021-08-10 16-39-08.png","createdAt":"2021-08-11T08:35:31.518Z","updatedAt":"2021-08-11T08:35:31.518Z","__v":0},{"_id":"61138c6eca51cc4041463c5f","originalname":"Screenshot from 2021-08-10 16-39-08.png","mimetype":"image/png","path":"uploads/userPhoto-1628671086882-Screenshot from 2021-08-10 16-39-08.png","filename":"userPhoto-1628671086882-Screenshot from 2021-08-10 16-39-08.png","createdAt":"2021-08-11T08:38:06.912Z","updatedAt":"2021-08-11T08:38:06.912Z","__v":0},{"_id":"611399f3c091974a20aa3293","originalname":"Screenshot from 2021-08-10 16-39-08.png","mimetype":"image/png","path":"uploads/userPhoto-1628674546976-Screenshot from 2021-08-10 16-39-08.png","filename":"userPhoto-1628674546976-Screenshot from 2021-08-10 16-39-08.png","createdAt":"2021-08-11T09:35:47.047Z","updatedAt":"2021-08-11T09:35:47.047Z","__v":0},{"_id":"611399f3c091974a20aa3294","originalname":"Screenshot from 2021-08-10 16-40-21.png","mimetype":"image/png","path":"uploads/userPhoto-1628674546981-Screenshot from 2021-08-10 16-40-21.png","filename":"userPhoto-1628674546981-Screenshot from 2021-08-10 16-40-21.png","createdAt":"2021-08-11T09:35:47.048Z","updatedAt":"2021-08-11T09:35:47.048Z","__v":0},{"_id":"611399f3c091974a20aa3295","originalname":"Screenshot from 2021-08-10 16-39-08.png","mimetype":"image/png","path":"uploads/userPhoto-1628674547001-Screenshot from 2021-08-10 16-39-08.png","filename":"userPhoto-1628674547001-Screenshot from 2021-08-10 16-39-08.png","createdAt":"2021-08-11T09:35:47.048Z","updatedAt":"2021-08-11T09:35:47.048Z","__v":0},{"_id":"611399f3c091974a20aa3296","originalname":"Screenshot from 2021-08-10 16-39-08.png","mimetype":"image/png","path":"uploads/userPhoto-1628674547004-Screenshot from 2021-08-10 16-39-08.png","filename":"userPhoto-1628674547004-Screenshot from 2021-08-10 16-39-08.png","createdAt":"2021-08-11T09:35:47.048Z","updatedAt":"2021-08-11T09:35:47.048Z","__v":0},{"_id":"611399f3c091974a20aa3297","originalname":"Screenshot from 2021-08-10 16-39-08.png","mimetype":"image/png","path":"uploads/userPhoto-1628674547007-Screenshot from 2021-08-10 16-39-08.png","filename":"userPhoto-1628674547007-Screenshot from 2021-08-10 16-39-08.png","createdAt":"2021-08-11T09:35:47.048Z","updatedAt":"2021-08-11T09:35:47.048Z","__v":0}]

About

Multer file upload in nodeJS with simple html form

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published