Google Cloud Storage Upload with Node.js | Step-by-Step Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.ย. 2024
  • Learn how to upload files to Google Cloud Storage using Node.js and the @google-cloud/storage library. In this tutorial, we'll walk you through the process of setting up your project, configuring environment variables, and writing code to upload files to a Google Cloud Storage bucket. Whether you're a beginner or an experienced developer, this step-by-step guide will help you get started with cloud file storage in no time!
    Resources:
    github.com/ada...
    cloud.google.c...

ความคิดเห็น • 16

  • @tsykin
    @tsykin 3 หลายเดือนก่อน +2

    Thanks, your instructions on creating service account were useful 👍

  • @lucasfernando9947
    @lucasfernando9947 22 วันที่ผ่านมา

    thanks man! i was having some troubles to create the json key file

  • @nastymffs
    @nastymffs 3 หลายเดือนก่อน

    I have an error with my project. When it runs locally, it works completely fine, but when I deploy it on Google Cloud Run, I encounter this error:
    Error: ENOENT: no such file or directory, open '/app/sa-key.json'
    This is how I initialize storage:
    const keyFilename = process.env.KEY_FILENAME;
    const storage = new Storage({
    keyFilename
    });
    Why does it appear? Is there something to do with my Dockerfile configuration? Because I use WORKDIR /app

  • @lenny91
    @lenny91 8 หลายเดือนก่อน

    Remember to also add the Google Application Credentials in the ENV variables if the error at the end persists.

  • @barathkumark2
    @barathkumark2 7 หลายเดือนก่อน +1

    Any idea on how to upload csv which is generated and stored in inmemory in a variable and write directly to GCP bucket nodejs?

    • @zakbamber3077
      @zakbamber3077 5 หลายเดือนก่อน

      Did you find out? I am trying to do the exact same thing

    • @iagooliveira8966
      @iagooliveira8966 2 หลายเดือนก่อน

      Eu faço da seguinte maneira, gero uma URL assinada, com essa URL faço o upload do arquivo (nesse momento estou como opção o content type do arquivo que aceito) e armazeno em meu bd o nome do arquivo para utilizar em um trabalho processado em fila

  • @kensleylewis
    @kensleylewis 3 หลายเดือนก่อน

    So you have to have a paid account with Google Cloud to follow through with this tutorial correct?

  • @alkautsarf4767
    @alkautsarf4767 8 หลายเดือนก่อน

    very useful tutorial 🙌

  • @aspxsosa
    @aspxsosa 7 หลายเดือนก่อน

    Thanks for the video!

  • @ShamilKhan-xt5yl
    @ShamilKhan-xt5yl 4 หลายเดือนก่อน

    Thank you !

  • @Endrovan
    @Endrovan 5 หลายเดือนก่อน

    gracias amigo!!

  • @madhavgupta2002
    @madhavgupta2002 4 หลายเดือนก่อน

    i cant see project ID

    • @oluwapamilerinsobiyede3846
      @oluwapamilerinsobiyede3846 4 หลายเดือนก่อน

      Same thing here. How did you resolve it?

    • @madhavgupta2002
      @madhavgupta2002 3 หลายเดือนก่อน

      @@oluwapamilerinsobiyede3846 copied the numbers in that link

  • @HARUN-AKSU
    @HARUN-AKSU 4 หลายเดือนก่อน

    learn before you teach