DEV Community

Streaming Images & Videos to Google Cloud Storage with Node.js, Express, and Multer

Nick Parsons on January 22, 2019

The Problem 😒 I was tasked with transitioning code that's primary focus was to upload high-resolution images and large video files. It...
Collapse
 
amitgiri0001 profile image
amit giri

Hey, this looks really good but it seems to me that the code is going to store data in the buffer before it actually starts steaming the buffer to the gcs bucket.

This means that if the limit not set in the multer options the app will run out of memory if the filesize is huge.
Let us know what you think. Cheers :+1

Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
aarabmed profile image
AARAB MOHAMMED

he did just the first part which is saving the image on google cloud storage, the second part ,hypothetically he suppose to be saving the path of the image in the database, so when he does fetch the images he gets the list of paths and then assign each one of them to an img tag.

Collapse
 
bhaveshfides profile image
bhavesh-fides

Help me i want to store the files in to specifc folders.

Collapse
 
mufasa71 profile image
Shukhrat Mukimov

Why do we need to store extension?

Collapse
 
emmabidem profile image
Oluwatobi Immanuel

Please why can't i see the rest of this content?