Skip to content

This GitHub repository contains the example for uploading the images to the GCP storage engine using multer using node

Notifications You must be signed in to change notification settings

saravanakumarputta/gcp-image-upload-using-multer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gcp-image-upload-using-multer

Step1

Clone the gcp-image-upload repository

Step2

Open the terminal and navigate to clonned project. Install the dependencies using npm i.

Step 3

Download the key file from your GCP account using below steps.

  1. Go to your GCP console or here.
  2. Choose the project which you have created.
  3. Then navigate to IAM and Admin option in the sidebar and select Service Accounts options.
  4. Then click on the More icon at the end of your project and select Create Key.
  5. Select as JSON click create. This will create the key and the JSON file will be downloaded in the browser.
  6. Run npm start command to start the server.
  • projectId - This can be fetched from the downloaded key file.
  • bucket - Go to GCP and select the storage from the side menu. This will display all the storage buckets with their name.

Final Step

Try calling the upload API and find the iuploaded file in the GCP storage engine.

About

This GitHub repository contains the example for uploading the images to the GCP storage engine using multer using node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published