Uploading Images to Firebase Storage in ReactJS

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • I will be showing how to upload and store images in firebase using ReactJS. Let's enjoy this video!
    Click to Subscribe: bit.ly/Subscribe-Hong-Ly & turn on notifications to find out when I upload new videos.
    GitHub Repo
    github.com/lyhd/reactjs/tree/...
    GitHub Pages URL: lyhd.github.io/reactjs/
    Netlify URL: vigilant-noether-4942ba.netli...
    Website Used
    www.npmjs.com/package/firebase
    firebase.google.com/
    G7X Mark II Camera: amzn.to/37sTdps
    Website: www.hongly-portfolio.com
    Medium: / lyhong.rupp
    Facebook: profile.php?...
    Facebook Page (Think): / kitthink
    #firebase #uploadimage #reactjs
  • Věda a technologie

Komentáře • 126

  • @honglytech
    @honglytech  Před 3 lety +9

    Since I have been receiving requests on how to upload multiple images to Firebase, I decided to create this new tutorial. Hope you like it!
    czcams.com/video/S4zaZvM8IeI/video.html

  • @harisiqbal706
    @harisiqbal706 Před 3 lety

    this whole series is just awesome, covers everything you should know about react with firebase, really appreciated. ❤

  • @perebiakpara6609
    @perebiakpara6609 Před 3 lety +10

    You actually don't know how long i've been looking for this 😭❤️. I really appreciate it

    • @honglytech
      @honglytech  Před 3 lety

      You're welcome, Pere. I'm happy that it helped! :)

    • @gamerteen4153
      @gamerteen4153 Před 3 lety

      same this video helped a lot

  • @shannon-daygrant8754
    @shannon-daygrant8754 Před 3 lety +1

    One of the few tutorials that I've followed that has gone off without a hitch. Kudos to you! Merci from Montréal.

    • @shannon-daygrant8754
      @shannon-daygrant8754 Před 3 lety

      Constructive criticism might be: you could explain in more detail what every aspect of the codebase is doing. But you get props for code that works! Many thanks.

  • @thetruereality2
    @thetruereality2 Před 4 lety

    Thank you very much, this helped a lot after lots of searching I came across this video and its probably the simplest possible expanation there is.
    I particularly liked it because its done without axios or doesn't require any cloud functions or anything so thank you

  • @viveknigam3003
    @viveknigam3003 Před 3 lety +1

    Thanks a lot man! You covered all the essentials which were needed! ♥

  • @andresvargas8562
    @andresvargas8562 Před 4 lety +3

    Thank you so much... I came here because the Library called react-firebase-file-uploader didn't work due to a (couldn't find the module ERROR)... But your code does exactly the same... I just modified it a little in order to adapt it to my project... But I wouldn't be possible without your excellent explanation

  • @yuukotombo6578
    @yuukotombo6578 Před 4 lety

    Great breakdown. I was able to find my error with this quick video! Very straight forward example.

  • @evanbero9705
    @evanbero9705 Před 2 lety

    Great, simple tutorial, Ly. Thanks!

  • @alberthperez6991
    @alberthperez6991 Před 3 lety

    You're a genius, just what I was looking for, thank you very much.

  • @yadharthganesh
    @yadharthganesh Před 2 lety

    a thousand thanks bro. i was searching exactly for this..u made my day bro

  • @KevinJohnKiely
    @KevinJohnKiely Před 3 lety +1

    Just what I needed, thank you!

  • @Andres-jc6hr
    @Andres-jc6hr Před 3 lety

    Man, thank you so much, it was a big help for me!👊👍

  • @gamerteen4153
    @gamerteen4153 Před 3 lety

    so many videos and FINALLY THANK YOU

  • @plabmadeeasy
    @plabmadeeasy Před 2 lety

    Thanks for making these videos . You’re a star!

  • @chris78945
    @chris78945 Před 4 lety

    Thank you so much for a really well explained video!

  • @aqeelshamz
    @aqeelshamz Před 2 lety

    Thank you for this awesome tutorial 💙

  • @matheusdocarmo4150
    @matheusdocarmo4150 Před 3 lety

    Thanks so much ! Worked perfectly!

  • @ifeyinwakanu3956
    @ifeyinwakanu3956 Před 4 lety

    This is great. Much appreciated.

  • @osamabinladen7827
    @osamabinladen7827 Před 3 lety

    Thanks so much. This was a huge help.

  • @Vsevolod_Gorobec
    @Vsevolod_Gorobec Před 3 lety

    thx man , progress was awesome!

  • @bluewetball
    @bluewetball Před 2 lety

    This helped me figure out what I was doing wrong, so thanks!

  • @laceywalker2766
    @laceywalker2766 Před 3 lety

    This was so helpful for my project!!!!!!! Thank you so much!!!

  • @grakify
    @grakify Před 4 lety

    You're a genius!! Thanks so much :D

  • @talhamunir5466
    @talhamunir5466 Před 4 lety

    Thank You! This has been very helpful!

  • @Covuosier
    @Covuosier Před 4 lety

    Thanks for this! Helped me out a lot.

  • @lautarodelloni
    @lautarodelloni Před 3 lety

    Thank you so much!! You're awesome!! :D

  • @lb9915
    @lb9915 Před 3 lety

    thanks for the great video. Saved me a ton of time.

  • @ahmedateeq1721
    @ahmedateeq1721 Před 3 lety

    THANK YOUUUUUU, you made my life easier !!!!

  • @dipakraut6058
    @dipakraut6058 Před 3 lety

    Thank you so much, Brother🙌

  • @ongomobile9956
    @ongomobile9956 Před 4 lety

    Thank you an awesome tutorial super helpful

  • @miguelangelcabrera2227
    @miguelangelcabrera2227 Před 3 lety +1

    great video.! help me a lot!!

  • @waldothedev
    @waldothedev Před 3 lety

    Thanks for the tutorial, I have a question, how do you implement a function to cancel or pause the upload in React?

  • @ahmadmuraish1144
    @ahmadmuraish1144 Před 2 lety

    Excellent, you earned a sub

  • @sofiemanetti6747
    @sofiemanetti6747 Před 3 lety

    Excelent video! Very well explained :) Greetings from Argentina

    • @honglytech
      @honglytech  Před 3 lety +1

      Thanks Sofie! Also greeting from Australia

  • @ozankurucu6261
    @ozankurucu6261 Před 4 lety

    Thank you so much bro :)

  • @gokanton6090
    @gokanton6090 Před 4 lety

    Very usefull. thank you)

  • @herlloncardoso3661
    @herlloncardoso3661 Před 4 lety

    excellent video, help me a lot.

  • @adamwoolf9993
    @adamwoolf9993 Před 3 lety

    Please can you explain how to then download all the image urls as an array and print the images on the screen like a photo gallery?

  • @jugal.suthar
    @jugal.suthar Před 3 lety

    you made my day

  • @ramielsonedgar2095
    @ramielsonedgar2095 Před 3 lety

    Big thanks man

  • @chavorrukin
    @chavorrukin Před 2 lety

    Thank you for this tutorial. This worked almost perftectly for me, but the url inside my .then is returning "undefined". Has anyone ran into that issue?

  • @romelurbay1716
    @romelurbay1716 Před 3 lety

    Hi. When I upload an image or video the second time to Firebase, the first image or video that was uploaded is no longer displayed. this is fixed when the file is uploaded with another name, but is there another way to fix it? thanks in advance 🙏

  • @adamwoolf9993
    @adamwoolf9993 Před 3 lety

    Supernice! thanks!

  • @youssefb581
    @youssefb581 Před 3 lety +1

    I get the folowing error when trying it in production: Firebase Storage: No default bucket found. Did you set the 'storageBucket' property when initializing the app? (storage/no-default-bucket)
    It works perfectly fine in localhost, any reason why this happens?

  • @hoshiyomineedmoresuitamin5489

    Hi i have a question should we upload file such as image at client to storage cloud and take down url after that we send url to server to store url in database ? i think it a bit faster or less security?

  • @Animals_clips
    @Animals_clips Před 3 lety

    Great video

  • @shahriajamankhan1760
    @shahriajamankhan1760 Před 3 lety

    lovely....appreciate it ♥

  • @manuelluques3433
    @manuelluques3433 Před 4 lety

    Great video! You saved me

    • @honglytech
      @honglytech  Před 4 lety

      Luques Manuel You’re welcome, Luques.

  • @vinhvinh4701
    @vinhvinh4701 Před 2 lety

    Thanks man😉

  • @hoanganhtufplhn355
    @hoanganhtufplhn355 Před 3 lety

    Thanks bro !

  • @JonsonNcube
    @JonsonNcube Před 4 lety

    THANK YOU!!!!!! #Subscribed!!!

  • @notfavoritemartian
    @notfavoritemartian Před 3 lety

    Love you man

  • @ngotrongphuc99
    @ngotrongphuc99 Před 3 lety

    can this able to choose and upload multiple images?

  • @devongrey1237
    @devongrey1237 Před 4 lety

    great video!

  • @user-in3ju6ej3p
    @user-in3ju6ej3p Před 2 lety

    How to use both storage and authentication together ?

  • @ankitkumarverma8214
    @ankitkumarverma8214 Před 3 lety

    When I try to load firebase url in img tag cross origin bad request error comes

  • @sohamvishwas6795
    @sohamvishwas6795 Před 2 lety

    Thank you!

  • @user-in3ju6ej3p
    @user-in3ju6ej3p Před 2 lety

    Thank you very much

  • @VrlHtzz
    @VrlHtzz Před 3 lety

    I just loooooooooooooooooooooooovvvvvvvvvvvveeeeeeeeeeeeeeeeee
    You 😭😭
    You saved me from something you can't even imagine 😍 it worked for me 😭
    Thank you brother 🙏👊👍

  • @soulking6982
    @soulking6982 Před 2 lety

    Thank u very much. Can u aslo tell how mush space firebase storage has. Btw thank 🙏❤u

  • @sebastiantamayo7779
    @sebastiantamayo7779 Před 3 lety

    How do I do now for multiple files?

  • @Human_Evolution-
    @Human_Evolution- Před rokem

    What if I already have a Firebase project going with a collection of text data, how do I then add image uploads as well? Starting from scratch seems to be different. I spent 2 hours failing from Pedro's tutorial earlier today. I like your video although that one handler function looks way too long.

  • @rifaniriyas5197
    @rifaniriyas5197 Před 2 lety

    when i try to load image in firebase i am getting error in arduino ide as uploading picture...invalid http or url error ...plz clear the doubts ...

  • @lnmendez
    @lnmendez Před 3 lety

    gracias, me ayudo mucho

  • @manojmenon5020
    @manojmenon5020 Před 2 lety

    hello brother,please tell me the maximum images that can be stored in firebase.Please i need to know for important purpose

  • @crazycode2578
    @crazycode2578 Před 3 lety +1

    Dear Sir. I really like your video.
    But when I uploaded image to firebase storage then GET image by URL, it occurred bug CORS blocked. Can you fixed me this bug? I have spent all day to fix this bug but it go nowhere. Thanks

  • @romadebrian
    @romadebrian Před 2 lety

    thank you very much

  • @nidhishettigar6981
    @nidhishettigar6981 Před 2 lety

    as i imported storage i got this error, please help.
    ERROR in ./src/fire.js 3:0-32
    Module not found: Error: Package path . is not exported from package E:\e-buddy-for-rescued-child-labour\ebuddy-portal
    ode_modules\firebase (see exports field in E:\e-buddy-for-rescued-child-labour\ebuddy-portal
    ode_modules\firebase\package.json)

  • @Artisticanand
    @Artisticanand Před 3 lety +1

    hai sir ,can u please help me i write this code inside a class component ,so usestyles showing some errors
    what are the changes i have do remove the errors.problems are
    1)Line 46:5: 'setImage' is not defined no-undef
    Line 51:25: 'image' is not defined no-undef

    • @sawyerlightsey3709
      @sawyerlightsey3709 Před 3 lety

      Sounds like you didn't define the useState hooks. 10:00 into the video, line 6 is where he defines it.

  • @feras3513
    @feras3513 Před 4 lety +1

    i love you

  • @smithbenson3984
    @smithbenson3984 Před 4 lety

    good job

  • @hitman42X
    @hitman42X Před 4 lety

    Thank You

  • @abdallahjabermohamad3147

    thanks a lot , but how can i store the image as a ref to the current user ( profile picture ) and it only relate to this guy ...

  • @naanfromchennai-nfctamil1714

    infinite loop occurs....any solution please

  • @muhammadahmadnadeem6688

    Facing An Error Of UpdateTask.on Is Not a function Any One pLz Help

  • @monstertuk92
    @monstertuk92 Před 3 lety

    Hello because the value "e" marks me an error: Parameter 'e' implicitly has an 'any' type.ts(7006)
    I wrote it the same as in the video.

    • @cactuxjuice3606
      @cactuxjuice3606 Před 2 lety

      const handleChange = (e: React.ChangeEvent) => {... try this

  • @LaceyMarie333
    @LaceyMarie333 Před 3 lety

    thank you so much!!!!!!!!!!!!!!!!!!!!

  • @Vinicius-hr3sp
    @Vinicius-hr3sp Před 3 lety

    thank you

  • @gcrisu
    @gcrisu Před 3 lety

    I could not change my rule in Firebase. Really wish this could work for me.

  • @callumn-d846
    @callumn-d846 Před 4 lety +2

    Nice and clear. How would you approach uploading multiple files?

    • @faouziauk1
      @faouziauk1 Před 4 lety

      I was looking into that also, any guidance would be fantastic!

  • @sabrinaakbar5348
    @sabrinaakbar5348 Před 4 lety

    Can you please make a video of displaying all the images stored in the firebase using react? Or how to use the libraries which do that. Thanks :)

    • @honglytech
      @honglytech  Před 4 lety +1

      Thanks for your suggestion, Sabrina. Noted!!

  • @jeevanstha57
    @jeevanstha57 Před 2 lety

    please make a video on multiple image to firebase firestore with user name and render according to user name like facebook,insta...

  • @phongsavanhmongkhonvilay3193

    is this firebase v9?

  • @fmdndr
    @fmdndr Před 3 lety

    thanks

  • @impree8181
    @impree8181 Před 3 lety

    is this created with react hooks or react native?

  • @sureshjangid3395
    @sureshjangid3395 Před 2 lety

    User does not have permission to access 'product-image/camra.png'. (storage/unauthorized

  • @alamshaikh4618
    @alamshaikh4618 Před 3 lety

    Thank uuuuu

  • @thekha8490
    @thekha8490 Před rokem

    thks

  • @talkohavy
    @talkohavy Před 2 lety +1

    OUTDATED !!!
    Guys,
    look for "Firebase v9 Storage in React | Upload Files to Cloud
    " tutorial video.

  • @nelsonomoro8591
    @nelsonomoro8591 Před 2 lety +1

    If you are getting an error trying to import Storage when using firebase v9
    Watch the videos below:
    Link to import firebase/storage - shrinke.me/sFdh2B
    Link to import firebase/firestore - shrinke.me/COlYPZ

  • @haniarafique5840
    @haniarafique5840 Před 3 lety

    Sir jee mouj kerdee apnay tou !!!!

  • @mathewsjoby6455
    @mathewsjoby6455 Před 2 lety

    doesn't work

  • @nigushaa
    @nigushaa Před 2 lety

    Though I'm an atheist, God bless you!

  • @ScorpionKingTP
    @ScorpionKingTP Před 4 lety

    React was not necessary based on your title

  • @MahaDeveloper
    @MahaDeveloper Před 3 lety +1

    Le Stack overflow*
    Let's just declare this as deprecated.
    stackoverflow.com/questions/41352150/typeerror-firebase-storage-is-not-a-function

  • @wintendedgamer2328
    @wintendedgamer2328 Před 2 lety

    G4T

  • @denzelzed2775
    @denzelzed2775 Před 2 lety

    6 minutes to just install firebase

  • @shehanbartholomeusz7511

    thank you

  • @nprajwal420
    @nprajwal420 Před 3 lety

    Thanks so much