Skip to content

Basic example on how to upload an image using fastify - multer - mongoose - gridfs

Notifications You must be signed in to change notification settings

Linch1/fastifyUploadFile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

Getting Started with Fastify-CLI. This project was bootstrapped with Fastify-CLI. In the project directory, you can run:

  • npm i: Install dependencies
  • npm run dev: To start the app in dev mode
  • npm start: For production mode

To Upload a File

You can use for example postman to make this api call

  • TYPE: POST
  • ENDPOINT: http://127.0.0.1:3000/ads/
  • BODY
{
    "name": "name",
    "desc": "desc",
    "file": "selected file"
}

About

Basic example on how to upload an image using fastify - multer - mongoose - gridfs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages