Uploading an Image to Firebase Cloud Storage using Node.js

Uploading an Image to Firebase Cloud Storage using Node.js

Technical Rajni

1 год назад

4,354 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@plane.driver
@plane.driver - 18.11.2023 06:34

I need it on the plane js 😢

Ответить
@mauricearida9001
@mauricearida9001 - 22.11.2023 11:57

the documentation has changed.. and this video has been only one month ! anw on retrieval of the image by the link i am getting this :
<Error>
<Code>AccessDenied</Code>
<Message>Access denied.</Message>
<Details>Anonymous caller does not have storage.objects.get access to the Google Cloud Storage object. Permission 'storage.objects.get' denied on resource (or it may not exist).</Details>
</Error>

Ответить
@jorgegarnicablanco8136
@jorgegarnicablanco8136 - 17.02.2024 17:33

A little improvement regarding the download URL
const blobStream = blob.createWriteStream({
metadata: metaData,
gzip: true,
});
blobStream.on('error', (err) => {
console.log(err);
});
blobStream.on('finish', async () => {
const downloadURL = await blob.getSignedUrl({
action: 'read',
expires: '03-09-2491',
});
console.log(downloadURL[0]);
console.log(downloadURL);
console.log('finished!');
});
blobStream.end(pdfBuffer);

Ответить
@KentVincentDelaCruz
@KentVincentDelaCruz - 22.03.2024 06:50

How to define the destination folder in the firebase storage?

Ответить
@atiqurrehman0109
@atiqurrehman0109 - 28.03.2024 14:40

Thank you for this kind helpful video i want to know that after adding this service account json file in my repo i can't upload it on github to deploy my api's how can i do this ?

Ответить
@prasad05172
@prasad05172 - 21.04.2024 20:40

can i get github repo link

Ответить
@fowik3504
@fowik3504 - 23.05.2024 09:35

Will this thing work if I will upload this to cloud functions?

Ответить
@fowik3504
@fowik3504 - 23.05.2024 09:42

For me this thing isnt working if I deploy api to Cloud Functions, It only works locally. Can you please tell me why, and what should I do?

Ответить