Skip to content

Demo of uploading and downloading a file from Mongo DB GridFS storage using multer

Notifications You must be signed in to change notification settings

kvnam/multer-gridfs-storage-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multer Gridfs Storage demo

A small, basic demo project to demonstrate the use of multer-gridfs-storage to upload a file and download it.

Getting Started

Read up a little about Gridfs storage here GridFS

Prerequisites

Node.js

Installing

npm install

The project accepts a single file as input. You can change the mutler upload function to anything else. The input to retrieve the file name is the original name of the file. You can change this in the file property in storage GridFS Storage object.

Running the tests

Mocha and Chai have been installed, I haven't added the tests yet. You can use

npm run test

to run tests.

Break down into end to end tests

  • Add test details

And coding style tests

  • Add details

Deployment

npm start

Built With

Contributing

Nothing here for now. If you're interested in taking this further, email me at [email protected]

Versioning

I use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Kavita Nambissan Ganguli - Initial work - KvNam

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Stack Overflow folks - for all the answers and hints

About

Demo of uploading and downloading a file from Mongo DB GridFS storage using multer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published