ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

Build An Image Gallery With Supabase Storage and React (Upload Images with Supabase)

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ส.ค. 2024
  • Thanks so much to Supabase for having me as a content creator for their content storm ⛈️! Get ready for Supabase Launch Week 6 here: supabase.com/launch-week
    In this video I show how to create a React application with Supabase that allows users to store images in their own image galleries. Users will log in with Supabase Magic Link authorization, and then we handle image upload with PostgreSQL and Supabase Storage. This project is great for any React developers interested in large file storage, and creating a system like this video is a great step forward when creating apps that can scale with massive traffic. You can apply the concepts in this video to creating social media feeds, creating sharable MP3s, sharing 3D objects across users, and many other use cases involving larger files! End of story: Supabase bucket storage is epic.
    Full Code: github.com/coopercodes/Supaba...
    Enjoying my videos? Sign up for FREE content here: www.thecoopercodes.com/
    0:00 Intro
    1:40 Initialize Supabase app
    2:38 Setup React app + Supabase initialization
    4:50 Creating Magic Link login page
    11:57 Creating Image Gallery page
    13:45 Setting up Supabase Storage
    15:59 Image upload to gallery
    21:15 Get images from Supabase Storage
    24:30 Explaining CDN links
    27:15 Showing images to user
    30:37 Delete user image
    32:49 Functionality test, thanks for watching!

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

  • @ghassenlabidi5171
    @ghassenlabidi5171 ปีที่แล้ว +1

    Very well explained and straight to the point! Thanks!

  • @joscfc9719
    @joscfc9719 ปีที่แล้ว +1

    Really enjoyed the vid, I've been following supabase database and auth tutorials and this is just the tutorial i needed to get started with supabase storage!

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

    Very helpful video, now supabase is much more easier !

  • @FaizalHeesyam
    @FaizalHeesyam ปีที่แล้ว

    simple and clear tutorial. nice pace, easy to understand. keep it up! 👍🏻

  • @elliottkan
    @elliottkan ปีที่แล้ว +5

    I've just started learning how to code a few months ago. I love your energy and way of breaking things down with pseudocode! Keep it up Cooper, you've got a new subscriber :)

    • @CooperCodes
      @CooperCodes  ปีที่แล้ว

      Hey Elliot I appreciate the kind words! This channel has a bunch of videos designed for those who know the basics, and want to go to the next level with some projects! Glad it’s useful for your situation, and thank you for the sub :)

  • @georgelucasribeiro3696
    @georgelucasribeiro3696 11 หลายเดือนก่อน

    Man... you saving me again.
    Thank you so much for this nice tutorial

  • @paulthomas1052
    @paulthomas1052 ปีที่แล้ว

    I really enjoy these tutorials - great content and nice time-frame. Look forward to your next one. Thanks :)

    • @CooperCodes
      @CooperCodes  ปีที่แล้ว +1

      Glad they're helping you! Thanks for the support :)

  • @rajsoni8555
    @rajsoni8555 ปีที่แล้ว

    Nice one. Helped me get past the hindrance in my ongoing project. Thank you for making this.

    • @CooperCodes
      @CooperCodes  ปีที่แล้ว

      Glad to help you get past that hurdle, thanks for watching!

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

    Best tutorial, thank you so much.

  • @maskman4821
    @maskman4821 ปีที่แล้ว

    Very useful and practical tutorials, thank you so much 🙏

    • @CooperCodes
      @CooperCodes  ปีที่แล้ว

      You're very welcome! Thanks for watching :)

  • @brianwalsh7040
    @brianwalsh7040 ปีที่แล้ว +7

    can you make this exact thing but with nextjs 13 (using the app router)

  • @revaprasetya
    @revaprasetya 6 หลายเดือนก่อน

    Great video, thank you sir

  • @correiapas
    @correiapas ปีที่แล้ว

    Great video, It was super clear. Thanks.

    • @CooperCodes
      @CooperCodes  ปีที่แล้ว

      Thanks so much Pedro, glad the video was helpful :)

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

    Your one of the best youe teaching react, your clearly delivered and ex[lain

  • @psyferinc.3573
    @psyferinc.3573 ปีที่แล้ว

    thanks cooper more of supabase please with nextjs

  • @Deus-lo-Vuilt
    @Deus-lo-Vuilt ปีที่แล้ว

    Nice bro , I liked supabase and react !

    • @CooperCodes
      @CooperCodes  ปีที่แล้ว

      Glad you enjoyed using the technologies! Thank you for watching :)

  • @thekannadacoder8134
    @thekannadacoder8134 ปีที่แล้ว

    thank you so much , it really helped

    • @CooperCodes
      @CooperCodes  ปีที่แล้ว

      Glad to hear it! I found the bucket storage stuff confusing initially so glad it helped you :)

  • @rodrigoorellana2389
    @rodrigoorellana2389 ปีที่แล้ว

    amazing explanation... question: amazing explanation... question: what happen if we remove a imagen the bucket from the supabase dashboard? I remember firebase takes the changes instantaneously and reflect them in the frontend

  • @devardilshad3944
    @devardilshad3944 10 หลายเดือนก่อน

    amazing thanks for the clarification very insightful. I want to implement a delete image feature but supabase gives an error and i hope you make a short video about that if possible.

  • @hendrywilliam
    @hendrywilliam ปีที่แล้ว +2

    Hello sir, how do we connect table (lets say i created a user table which contains username and password) and storage, and every file uploaded by specific user has its own id? Thanks

  • @yourdailyanimalfact
    @yourdailyanimalfact ปีที่แล้ว

    Cooper how would one use image bucket data in a table of. products like we created in another video of yours. How can we upload a product image and combine it with product name and description table data.

  • @Holsp
    @Holsp ปีที่แล้ว +1

    Hey, I tried logging in with Supabase email authentification, and when I tried to put the new image into the bucket. I get this error:
    "401" "Invalid JWT" "new row violates row-level security policy for table"
    I don't really know what to do with it. I have my cookie so I don't know why it's not taking my JWT. I am a beginner in Auth and don't know if I am missing something. Would you have any ideas?

  • @dungsidietpi
    @dungsidietpi ปีที่แล้ว +1

    when I put the website on github, when I click on the link to login in gmail, I can't navigate to the "Your image" page

  • @adamor993
    @adamor993 24 วันที่ผ่านมา

    Could you explain this when i use nextjs? I have a error between server and client components

  • @ThomazMartinez
    @ThomazMartinez 11 หลายเดือนก่อน

    Using UUID will also solve caching issues on client

  • @user-jx4wv9ee8b
    @user-jx4wv9ee8b 7 หลายเดือนก่อน

    Brother, is this java code?

  • @user-ye4ut8bb2v
    @user-ye4ut8bb2v 9 หลายเดือนก่อน

    How could I print the file name without calling the entire supabase URL? Just the user's file name

  • @APerson-d5s
    @APerson-d5s ปีที่แล้ว

    Can you do the same thing with Nhost Image hosting and Hasura?

    • @CooperCodes
      @CooperCodes  ปีที่แล้ว

      Going to look into Nhost soon, will check out their image hosting and hopefully make some content regarding that :)

    • @APerson-d5s
      @APerson-d5s ปีที่แล้ว

      @@CooperCodes thanks!

  • @LazriYouness-vr6ej
    @LazriYouness-vr6ej 9 หลายเดือนก่อน

    @everyone how to this with next js please

  • @khaqim4148
    @khaqim4148 ปีที่แล้ว

    you did not create any table?

  • @raynosebastian6275
    @raynosebastian6275 ปีที่แล้ว

    bro do you have any react + supabase google auth tutorial ?

    • @CooperCodes
      @CooperCodes  ปีที่แล้ว +1

      Yup, this one: m.th-cam.com/video/tgcCl52EN84/w-d-xo.html

    • @raynosebastian6275
      @raynosebastian6275 ปีที่แล้ว

      @@CooperCodes yoo thanks for the reply bro ♥️, im new in this web dev world so rn i kinda lost 😫

    • @CooperCodes
      @CooperCodes  ปีที่แล้ว +2

      ​@@raynosebastian6275 It can be intimidating at first! The projects on my channel aim to take you from a beginner skillset (knowing some fundamentals) to bring you to an intermediate understanding (with the ability to build your own projects!). Best of luck on your web dev journey :)​ Thanks for watching

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

    CReate more videos

  • @studioph5.6
    @studioph5.6 ปีที่แล้ว

    steap by step with your video and "new row violates row-level security policy for table "objects"" again and again =\

    • @studioph5.6
      @studioph5.6 ปีที่แล้ว

      turned out you have to apply policy for objects, not just policy for yout bucket. Not sure why it works for @CooperCodes. For example, to upload images use following policy for table.objects via sql editor:
      ALTER TABLE storage.objects ENABLE ROW LEVEL SECURITY
      CREATE POLICY objects_insert_policy ON storage.objects FOR INSERT
      WITH CHECK (auth.role() = 'authenticated')