React Image Upload Made Easy

Поділитися
Вставка
  • Опубліковано 16 січ 2025

КОМЕНТАРІ • 296

  • @HarryRonchetti
    @HarryRonchetti 5 років тому +63

    This is fantastic, after searching for half a day you were the best resource I found and told me even more than I needed! Thank you

    • @hariharasudhankm2483
      @hariharasudhankm2483 4 роки тому +2

      I've made a react component for file upload with progress, check this out if possible www.bytehub.dev/components/animated-file-upload

    • @Opacity5
      @Opacity5 2 роки тому

      ikr!! pick file option was cool which i wasnt expecting lol

  • @nooobcoder
    @nooobcoder 3 роки тому +26

    The content what you taught under 10 minutes, is what my professors teach in 3 months. SALUTE to you Max, I am so proud of learning from you.

    • @vision_vsn5556
      @vision_vsn5556 3 роки тому +1

      agree

    • @hamdamboyurunov6034
      @hamdamboyurunov6034 3 роки тому

      my professors teach in 3 months. Oh my Godness

    • @EminoMeneko
      @EminoMeneko 3 роки тому +1

      That's the problem with many educational content. It takes waaaaay too long and therefore becomes boring. Then you kinda switch off and you might fail your year. Pro tip: Go your path and work ahead on your own. Your time is precious.
      Or it is the opposite, you have too many to do in a short time span. You switch off, but that's much more understandable. Pro tip : You picked software development. In other words you decided to be a slave and have no free time for a few years until you get a real decent skill. Don't complain and cancel any dates or outing at all. Buy shackles and chains. STFU and code. The next hard earned money shall be invested in a whipping machine that will force you to code 1441 minutes a day.

    • @Ramon314
      @Ramon314 Рік тому

      If that's the case, you have terrible professors.

  • @biswajitsingh8790
    @biswajitsingh8790 7 років тому +21

    last night i was thinking of how to make a react app which allows users to upload images and videos and access them through some backend like firebase. and today you upload this. you are a god maximilian. 😘😘

    • @academind
      @academind  7 років тому +3

      Thank you very very much, makes me really happy to read that the video came at the right point in time for you :)

  • @prakhartiwari4916
    @prakhartiwari4916 4 роки тому

    I have purchased the course on Reactjs by Max sir on Udemy but I had my internship so was not able to complete it (will complete it soon) and was only able to do it till Deep Dive on React Components and Lifecycle Hooks which is chapter 8 btw. I really liked the way Max sir taught, firstly I used to think why is he giving such a deep knowledge of everything but trust me it is all worth it and now I am having a good time in my internship. But today I was struck on adding a file upload functionality and I was searching everywhere, be it react documentation, StackOverflow or youtube and then I came across this video, I was thinking that if only I would have completed the course it would have been much easier for me and when I opened this video I had my head down and as I heard the voice I thought to myself that's a voice I remember very well and when I looked up it was our one and only lifesaver Max sir once again for the rescue. Thank u very much, sir.

  • @kevincarpentier7085
    @kevincarpentier7085 3 роки тому

    2:46 onClick : amazing Voice !!! Seriously thanks a lot for this video !

  • @pcog1216
    @pcog1216 4 роки тому +5

    You need to upload this video in your UDEMY course of reactjs

  • @uhN0id
    @uhN0id 6 років тому +3

    This is fantastic. Thank you so much for the incredibly concise explanation. You have a skill to explain things everyone is asking in their heads as you're going through. Truly appreciated! I "smashed" that like button and subscribed!

    • @academind
      @academind  6 років тому +1

      Wow, it's really fantastic to get such an incredible feedback! Thanks a lot for that, very happy to have you on board of the channel :)

  • @maotoledos
    @maotoledos 6 років тому +13

    What happends if I'm storing my image in the backend. How do I get that image? With an axios?
    Awesome video by the way.

  • @loowang
    @loowang 4 роки тому

    Great tutorial video! Both audio, instructions and video quality are crispy clear! Thank you!

  • @alexb.2616
    @alexb.2616 4 роки тому +1

    Thank you!! You are the best teacher I have had!

  • @ajyku5
    @ajyku5 6 років тому +2

    You are excellent! How simply you explained the task.

    • @academind
      @academind  6 років тому +1

      That's so great to read Ajay, thank you very much!

  • @SmartySanju-th9jj
    @SmartySanju-th9jj 2 роки тому

    Was so useful, esp that input hiding part. Thank you so much Maximilian! You Rock!

  • @adrianp9692
    @adrianp9692 6 років тому

    Thanks Max for this video. I was stuck for a couple days on how to upload pictures in a MERN environment and this helped push me to the finished line along with Traversey Media.

    • @academind
      @academind  6 років тому

      Thanks a lot for your comment Adrian, happy to read that the video was helpful!

  • @julabrego
    @julabrego 2 роки тому

    man, your explanation was unbelievable clear. Thank you!

  • @patrickj3311
    @patrickj3311 7 років тому +4

    This is exactly what i need at the moment! Big thx! :)

    • @academind
      @academind  7 років тому +1

      Very happy to read that the video came at the right time Patrick, thank you for sharing this!

  • @jeinernoriega7910
    @jeinernoriega7910 7 років тому

    You're the best on UA-cam!!! You make it look so easy. Thanks for doing these videos

    • @academind
      @academind  7 років тому

      YOU are the best Jeiner, thanks a million for sharing this amazing feedback :)

  • @themagoleo666
    @themagoleo666 6 років тому +1

    Muchas gracias amigo! . Solo me queda felicitarte y agradecerte por tu gran labor de compartir el conocimiento. Thank you !

    • @academind
      @academind  6 років тому

      Thank you very much!

  • @ayoubdev8019
    @ayoubdev8019 4 роки тому

    Finally I found what I was searching for , amazing max , Thank u so much

  • @joudawad1042
    @joudawad1042 6 років тому

    Thanks maximilian, you are the best , i have purchased the react js and react native courses that you have on udemy and i can say that both are amazing you are a really great teacher.

    • @academind
      @academind  6 років тому +1

      Thanks a million for your awesome feedback and for your support here and on Udemy Joud!

  • @fredericgaufichon7373
    @fredericgaufichon7373 8 місяців тому

    That's the best tuto about sending files

  • @pax4698
    @pax4698 7 років тому +2

    I love all of your React videos Max (and your Udemy class!). Thanks for putting them together!

    • @academind
      @academind  7 років тому +1

      That's so great to read, thank YOU for your support!

  • @hermanomark
    @hermanomark 6 років тому +24

    Great video! but how do I get the images form the server and display it on the page?

    • @earlworth
      @earlworth 5 років тому +2

      Everything you need to save the image to a folder in Node and store the link to that image in Mongo is in his REST API series - specifically this video: ua-cam.com/video/srPXMt1Q0nY/v-deo.html. Run an axios.get()
      and pass in the retrieved localhost url into an img tag, and the browser will output the image.

    • @МихаилКожевников-м6ь
      @МихаилКожевников-м6ь 5 років тому

      @@earlworth not the best sollution. I prefer to store files in Mongo 'cause this approach helps me not to store files without links

    • @puspendertanwar9378
      @puspendertanwar9378 5 років тому +5

      @@МихаилКожевников-м6ь one should never store a static file into a Database. That's a bad design. Always store files on could storage and store the link to that file into your DB.

    • @chirayurathi7942
      @chirayurathi7942 4 роки тому

      @@puspendertanwar9378 how to get that llink after posting on firebase?

    • @puspendertanwar9378
      @puspendertanwar9378 4 роки тому

      @@chirayurathi7942 never worked with Firebase. But on AWS S3, one need to create buckets and folders. The file is uploaded into those. And a URL is created according to your zone and the bucket name.

  • @tomgriffiths4674
    @tomgriffiths4674 4 роки тому +2

    Thanks for this Max. Another great tutorial. Could you do a tutorial on uploading an image file to Amazon S3 from Next JS?

  • @SaifiCode
    @SaifiCode 2 роки тому

    I learnt node and react with redux from you. thanks a lot

  • @hiwijaya
    @hiwijaya 4 роки тому

    I really like how you explain things. Thank you.

  • @sithumdilanga650
    @sithumdilanga650 3 роки тому

    Thanks man. It helped me a lot

  • @melissacasas5161
    @melissacasas5161 5 років тому +3

    Thank you so much!! This helped me a lot!

  • @danielenocito5080
    @danielenocito5080 2 роки тому

    Thank you so much, always super clear!

  • @nramca
    @nramca 4 роки тому

    Thank you for explaining in detail .. Great concise video!

  • @chaochen8756
    @chaochen8756 6 років тому +1

    Learned a lot from your video. Thanks

    • @academind
      @academind  6 років тому

      So great to read that Chao, thank you for your comment!

  • @VenkiNagaraj
    @VenkiNagaraj 2 роки тому

    You covered everything and explained it very well 👌

  • @shifathrahman__shifath4771
    @shifathrahman__shifath4771 3 роки тому

    Thank you so much. This really provided a great help.

  • @sanketgawande5305
    @sanketgawande5305 3 роки тому

    Thank you man , for this content☺️.
    Nowadays it become very hard to found an ideal resource .

  • @KjeKji
    @KjeKji 7 років тому

    God, this guy is so good! I have his accelerated js course on udemy.. looking forward to get started on it. The understanding of simplicity and forward motion that is easy to follow, leapfrogs him ahead of other teachers. He does things in 2 minutes that others have trouble explaining/showing in 10 minutes. Max efficiency :)

    • @academind
      @academind  7 років тому +1

      Wow, thank you very very much for your absolutely fantastic feedback and for your support! This honestly means a lot to me as I really try my best to explain things as simple and as complete as possible :)

    • @KjeKji
      @KjeKji 7 років тому

      Quality resources should be praised. I am just writing the truth :)

  • @katejohnson2648
    @katejohnson2648 2 роки тому +1

    Thanks for the great tutorial! How would you set this up with multiple files in an array?

  • @diquattro
    @diquattro 6 років тому +8

    Great video! thanks a lot. I have a question: How do I retrieve the downloadURL after it was successfully uploaded?

  • @tapanvyas4190
    @tapanvyas4190 5 років тому +12

    how can I get the URL or URI of the image ??
    I want to upload an image using URI but the file object has no URI in it .
    How can i get the URI of the file .

    • @ashonetak
      @ashonetak 4 роки тому +4

      Nohow, this is private user information. You can use absolute path to file only, where you're get filename

  • @parrot785
    @parrot785 4 роки тому

    This video was a great help! Thank you!

  • @SusonS
    @SusonS 5 років тому

    Finally easy video, that covers only basics ;) thanks.

    • @academind
      @academind  5 років тому

      Happy to read that, thanks a lot for your comment!

  • @billbee235
    @billbee235 5 років тому +1

    Great video! I was able to use formidable to parse the req.files in my Express server.

  • @iloveyeseul
    @iloveyeseul 5 років тому +1

    Thank you so much. A very kind and nice video. Really helpful!!! LOVE IT.

    • @academind
      @academind  5 років тому +1

      Awesome to read that, thanks a lot for your comment!

  • @victorsalomon2552
    @victorsalomon2552 3 роки тому +1

    Hi Max, Thank you so much for this video 🙏! Can you please let me know which video is the one that shows how to create a Firebase endpoint ?

  • @AbdurrahmanHafez
    @AbdurrahmanHafez 4 роки тому

    Thank you very much Max. That was great

  • @ashutoshtelang8621
    @ashutoshtelang8621 6 років тому

    Thank you so much, want more of this made easy series please !!!!

    • @academind
      @academind  6 років тому

      Happy to read that you like it Ashutosh, I might create more videos like that in the future.

  • @watcharaponhongthong7869
    @watcharaponhongthong7869 2 роки тому

    Very helpful! Thanks you so much.

  • @mysweetysnaughtiness9469
    @mysweetysnaughtiness9469 3 роки тому

    this is just superb. Thank you.

  • @maniafranzio3023
    @maniafranzio3023 4 роки тому

    Problem Solved!!
    You deserve more than 611k subscribers!!
    Wish you all success brother...
    Love you💖💖💖💖
    💖 From India.

  • @isidme
    @isidme 6 років тому

    Thanks for the tutorial, I used fetch method for calling API instead of axios but still your tutorial helped a lot.

  • @asmabenbrahem6
    @asmabenbrahem6 4 роки тому

    Thank you for sharing your knowledge, this is exacly what I need.

  • @codeswithankit4316
    @codeswithankit4316 5 років тому

    Good job man, Your are helpful like always

  • @samuelalarco7496
    @samuelalarco7496 4 роки тому

    Thank you so much man. You are really amazing

  • @amandeshpande8981
    @amandeshpande8981 3 роки тому

    You are a life saviour man

  • @bethealphaa
    @bethealphaa 4 роки тому

    Love you Max, you are genuine guy. Upload such a video. Good Content. Very useful. Also please to upload similar content with Function component.

  • @mattmarkus4868
    @mattmarkus4868 4 роки тому +1

    How would you do this in Typescript? Specifically, how would you initialize the selected file? It says it takes a Blob but I don't know how to initialize that.

  • @alexb.2616
    @alexb.2616 4 роки тому

    Thank you. You are the best!

  • @asmaashfaq8881
    @asmaashfaq8881 7 років тому

    AHHH the Mini Max! I missed you :P Great video again! :)

    • @academind
      @academind  7 років тому +1

      Here I am! ;) Happy to hear you liked this video!

  • @antommylim330
    @antommylim330 7 років тому +3

    Really appreciate this tutorial. Can you do one tutorial where you can upload image to AWS S3? It would be awesome. Thanks again

    • @87611936
      @87611936 6 років тому

      Same. Need help on this

  • @N96123
    @N96123 7 років тому

    You are doing really great contents. Thank you !

    • @academind
      @academind  7 років тому +1

      Great to read that you like it Nezih, thank YOU for your comment :)

  • @chandrashekharsahu9639
    @chandrashekharsahu9639 4 роки тому

    Highly informative content . Thanks

  • @mikoko2192
    @mikoko2192 3 роки тому

    Thanks alot for this tutorial

  • @missmunmi
    @missmunmi 4 роки тому

    Awesome content indeed. Thanks you so much.

  • @johnnyjojoa2012
    @johnnyjojoa2012 4 роки тому

    Great great great! thank you very much!

  • @StrangerSaret
    @StrangerSaret 7 років тому

    Hi Max, thank you so much for your vuejs course on udemy! That's definitely the best course I've ever had. Thank you!

    • @academind
      @academind  7 років тому

      Really great to read that you like the course, thank you very much for sharing this :)

  • @DhiaMagicien
    @DhiaMagicien 3 роки тому

    What a F*CKING AMAZING video ❤
    Simple and straight to the point !

  • @Artisticanand
    @Artisticanand 3 роки тому

    It was really excellent video sir.
    Is their any other video we connecting react image file with firestore

  • @basiccodingwithadam8125
    @basiccodingwithadam8125 5 років тому

    Wet food explanation! Thank you!

  • @sarthakbhaiji8
    @sarthakbhaiji8 3 роки тому

    Great Video!!
    I am using a functional component instead of class components. How do I do that last part where you attached the ref to the input element, and call it via the button?

  • @journeywithraya
    @journeywithraya 4 роки тому +1

    Hii ! would you please upload video about how to upload image with name ,price something like this as a form using MERN using mongo atlas

  • @mustaneerhaider515
    @mustaneerhaider515 3 роки тому

    hey max if i'm using multer in the backend do I still need to send the file like this? Will it work for my rest api. Also i'm from your Node js course.

  • @FangerZero
    @FangerZero 5 років тому

    This is a great video Thank you so much!

  • @AnthonyCandaele
    @AnthonyCandaele 4 роки тому +1

    Thanks Maximillian, very handy video. I was wondering if you can also store more than just the image on Firebase. Say for instance a caption and user comments, or is it better to store that information in a local database?

  • @AgusJanardana
    @AgusJanardana 3 роки тому

    Thanks you so much for the tutorial. so i just started learning react js, graphql, and other tools too..I have question, can i get the url response from firebase after i uploaded my image? So i want my image uploaded to firebase, and get a return url that will saved to my graphql ( hasura ).

  • @brianssendagire262
    @brianssendagire262 5 років тому +1

    Legend, thank you bro.

  • @ChinaraIbr
    @ChinaraIbr 3 роки тому

    Thank you! You're great

  • @alicelf
    @alicelf 7 років тому +2

    Didn't see ur video yet, but I'm pretty sure - I'll like it =)

    • @academind
      @academind  7 років тому

      Thanks Oleg, I hope that you will also like it after you saw it ;)

  • @kajenkirubah1228
    @kajenkirubah1228 5 років тому

    thanks a lot max, you're a life saver. I have purchased your courses on udemy also and they are my favorite out of all the ones I bought.
    Will you consider doing a course on material-ui?

    • @academind
      @academind  5 років тому

      Thanks a lot for your support Bob! Got no such plans at the moment but this can always change in the future.

  • @jurgentafaj2951
    @jurgentafaj2951 3 роки тому

    does this work even with word docs or excel sheets?

  • @SaifiCode
    @SaifiCode 2 роки тому

    Great fan of you academind

  • @timomuller1448
    @timomuller1448 4 роки тому

    just what I was looking for!

  • @rickyj4121
    @rickyj4121 4 роки тому

    Thank you so much!

  • @The9ben89
    @The9ben89 3 роки тому

    So we do not need the files path to store the file/s in the Database??

  • @jonyyyyyyyyyyyyyyyy
    @jonyyyyyyyyyyyyyyyy 4 роки тому

    Thank you for your video... I have a question, what can I do to reduce the image size (quality) before upload?

  • @amansingh-os9gd
    @amansingh-os9gd 3 роки тому

    Hey man i have multiple input fields for image upload how do i distinguish them to set state to different types of files ?

  • @TheGamerzXChannel
    @TheGamerzXChannel 4 роки тому

    Hey im struggling with uploading a video for an important project, I assume it has to be the same, but it doesnt work. Do you have any kind of experience or help to point in right direction?

  • @kps2642
    @kps2642 7 років тому

    pretty cool , was learning react via your udemy course, this looks really handy

    • @academind
      @academind  7 років тому

      Happy to read that and great to have you on board here and in the Udemy course!

  • @jaggyjut
    @jaggyjut 3 роки тому

    Instead of uploading the image to a server like firebase what if we wanted to pass the image to tensorflow function for prediction. How will we setup the function please.

  • @GoryWory
    @GoryWory 5 років тому

    Cool bro, thx a lot, your React course on Udemy is the best!

    • @academind
      @academind  5 років тому +1

      Awesome to read that, thanks a lot for your comment and your support here and on Udemy!

  • @ossamaelidrissi2624
    @ossamaelidrissi2624 2 роки тому

    Hi , thanks for the vedio but i‘v a question , how can i store the image in a folder after we upload it

  • @sheikhabdullah6574
    @sheikhabdullah6574 5 років тому

    Is there a way to show the image right after we have selected a file for upload?

  • @JesusMurF
    @JesusMurF 7 років тому +1

    Nice video, I expected to be about a drag and drop upload file, but anyway I learn a lot.

    • @academind
      @academind  7 років тому +3

      Great to hear that! Drag & Drop is also an interesting topic - I might create a video on that, too.

    • @froutopoiosalex717
      @froutopoiosalex717 6 років тому +2

      you can use the react-dropzone package github.com/react-dropzone/react-dropzone
      fileSelectHandler = files => {
      this.setState({
      selectedFIle: files[0]
      )}
      }
      inside the render method use:

      Drop the image here!
      and you are ready to go

  • @eddiegomez4134
    @eddiegomez4134 4 роки тому

    Trying to build a react app. Wondering if I should use firebase as my backend (I've only used MongoDb). Need to create users, have user's chat, and upload photos.Thoughts?

  • @vladosononame6376
    @vladosononame6376 3 роки тому

    How can we do same without axios? May be store files somewhere on server in folder

  • @arazmammadov9276
    @arazmammadov9276 2 роки тому

    How to keep a file in a redux store to send it from another component? Cause store doesn't keep non-serializable data, like a file...

  • @saumitravshl
    @saumitravshl 5 років тому

    Hi Max Thanks for this video.
    Can you please let us know how to create folder and store data into that in react front end application?

  • @inamulhassan4384
    @inamulhassan4384 6 років тому

    Hi Max,
    I have been waited for this. Great video as usual and I'm
    looking for a video on Google maps and React, If you can do a one that would be really helpful.

    • @academind
      @academind  6 років тому

      Thanks for your nice feedback and suggestion - great to hear you're liking it!

  • @malikbrahimi7504
    @malikbrahimi7504 4 роки тому

    It's pretty simple enough if you have a cloud function tied to cloud storage but how would you create an API for file uploading in a simple Express app? Would you rewrite the file in chunks to the static folder?

  • @stopPlannedObsolescence
    @stopPlannedObsolescence 4 роки тому

    How load previous images/files and delete or add more?

  • @mohammadrahmani1594
    @mohammadrahmani1594 5 років тому

    hi, can i use Fetch Instead of axios?

  • @nguyentoanhnt
    @nguyentoanhnt 3 роки тому

    Thank you so much

  • @maldamotuma2773
    @maldamotuma2773 4 роки тому

    fantastic!!!!!!!!!!!!!......... thanks alot