Тёмный
No video :(

NextJS Upload to Google Cloud Using Signed URL 

ScriptBytes
Подписаться 2,2 тыс.
Просмотров 1,8 тыс.
50% 1

Learn how to upload files to Google Cloud Storage in NextJS using a Signed URL. Signed URL's are a great option for granting temporary permission to users, or for uploading larger files.
In this demo I get the Signed URL using a server action.
I also cover how to create the service account and add the JSON Key to the project, as well as how to configure the CORS setting on your Google Cloud Storage bucket.
Google Cloud docs on uploading using Signed URLs:
cloud.google.c...
Google Cloud docs on setting up CORS config:
cloud.google.c...
Github link for code from video:
github.com/Scr...
Follow me on social media!
Instagram: / scriptbytes
Threads: www.threads.ne...
Check out my blog!
scriptbytes.io/

Опубликовано:

 

27 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 11   
@florisalexandrou1095
@florisalexandrou1095 3 месяца назад
I tried to do it with the same approach using supabase and was getting a react hydration error, I actually needed to add the 'use server' directive. Uploading with signed URLs is honestly underrated, couldn't find any official docs to show how to do it in NextJS. Thanks for saving me hours of headaches :D!
@scriptbytes
@scriptbytes 3 месяца назад
I’m glad I could help!
@ehtz8019
@ehtz8019 9 дней назад
Hi could you please share the code for that :) @florisalexandrou1095
@alir8zana635
@alir8zana635 5 месяцев назад
your channel is really great I was looking for several videos and your channel came up keep up the great work the community appreciates your work greatly
@scriptbytes
@scriptbytes 5 месяцев назад
This is one of the nicest comments I think I’ve ever got. I appreciate it. Thank you.
@pegak
@pegak 2 месяца назад
Awesome, I was looking for this, thank you very much!
@scriptbytes
@scriptbytes 2 месяца назад
Glad I could help!
@bdthombre
@bdthombre 4 месяца назад
It's really nice channel..keep doing the great work...someday soon it will burst open the subscribers flow...
@scriptbytes
@scriptbytes 4 месяца назад
Thanks, I hope so too!
@SEV-sm3wg
@SEV-sm3wg 5 месяцев назад
Thanks for the amazing content! In your opinion, if I'm building a social media website with users who are uploading images and photos, is my understanding correct that I should use the Signed URL way instead of the way listed in your other NextJS Google Cloud video because my users will ordinarily NOT HAVE permission to write to the bucket?
@scriptbytes
@scriptbytes 4 месяца назад
Each way has pros and cons. Signed URL reduces stress on your server, however it turns it into a 2-step process. 1. Info is submitted, url is returned, 2. image is uploaded. The extra step allows for a failure. Server action allows you to do it all in one step/transaction, but requires more server resources. Also makes you have to increase the server action size limit. Another option is instead of a server action, make an api endpoint to accept media and any other info (tweet/comment for example). This would still take server resources like the server action, but with out the size limitations. So basically...it depends :)
Далее
How to deploy a dockerized FastAPI to Cloud Run
22:22
Просмотров 1,8 тыс.
Securing Cloud Function using Google Cloud API Gateway
21:48
Run your Next.js app on Cloud Run
12:23
Просмотров 6 тыс.
Entity Framework Web API Tutorial .Net 8
36:47
Просмотров 3,7 тыс.
Add Tailwind CSS to Blazor! | Build a Blog - Ep 01
9:52
Next.js To AWS S3 File Uploads
19:25
Просмотров 742