Skip to content

Codmnk/nodeuploads

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeUploads

An example of how to upload multiple images or video locally with Node.js and Multer. If the app is render on the mobile device browser, photo or video can be capture using device's camer to upload the photot or video.

Version

1.0.0

Usage

Installation

Install the dependencies

$ npm install

Serve

To serve in the browser

$ npm start

App Info

change number of images allowed to upload by changing number in app.js line 22

const upload = multer({
    storage: storage,
    limits: {fileSize: 25000000},
    fileFilter: function(req, file, cb){
        checkFileType(file, cb)
    }
}).array('myfile', 5) // 5 indicates that the number of file allowed to upload at once.

Author

Prem Acharya extended from auther Traversy Media sample

Version

1.0.0

License

This project is licensed under the MIT License

About

Node.js image uploads with Multer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 50.6%
  • HTML 49.4%