File Upload class 1

Local file Upload codes (LOVE BABBER)

Setup:-

  • Create a folder

  • open it into vs code

  • write (npm init -y) in vs code terminal

  • install some other dependencies

Packege.json

index.js file

fileUploadRoute.js file

fileUploadController.js file

fileUploadSchema.js file

cloudinary.js file

.env file

💡
We create a folder name is files in our controler folder. In this folder we can see the image which were we send in postman testing.
💡
Create a account in cloudianry to use you api_key,cloud_name, etc.