JavaScript - How to Upload and Display Multiple Images (Updated version in the description)

Поделиться
HTML-код
  • Опубликовано: 30 сен 2024
  • Learn how to upload and display multiple images with JavaScript.
    Updated version:
    • How to Upload Images w...
    Sponsor me on GitHub!
    github.com/spo...
    Follow my blog:
    / miguelznunez
    Email : mignunez@csumb.edu
    Medium : / miguelznunez
    Codepen : codepen.io/mig...
    GitHub : github.com/mig...

Комментарии • 27

  • @cristalmarie8450
    @cristalmarie8450 2 года назад +3

    I value the content , thanks!
    Helpful resource!
    #codefoxx

  • @IbukunOyewole-lp9le
    @IbukunOyewole-lp9le 2 года назад +1

    Thank you so much for the content............impressively valuable
    May I know how i can upload videos through the same method, would be waiting for your response

  • @zachfenton608
    @zachfenton608 2 года назад +1

    Wonderful explaniation, would like to see how to save it to the back end.

  • @guylhermef1219
    @guylhermef1219 Год назад +1

    im doing similiar, but i want remove just the clicked img. can you help with this?

    • @codefoxx
      @codefoxx  Год назад

      Sure, watch my most recent video

  • @davebudah
    @davebudah 5 месяцев назад

    This sooo cool, thank you.

  • @emmanueladu-gyamfi5136
    @emmanueladu-gyamfi5136 2 года назад +2

    this work well but the more images i add, the images dont maintain their width and they shrink and get cramped up, can you please help

    • @codefoxx
      @codefoxx  2 года назад +1

      Try adding flex-wrap:wrap ; in the container that holds all of the images. Let me know of that fixes the problem

    • @emmanueladu-gyamfi5136
      @emmanueladu-gyamfi5136 2 года назад

      @@codefoxx nope, it doesn’t

    • @codefoxx
      @codefoxx  2 года назад

      @@emmanueladu-gyamfi5136 what other properties are you using in the container that is holding all of your images?

    • @emmanueladu-gyamfi5136
      @emmanueladu-gyamfi5136 2 года назад

      @@codefoxx display:flex;
      Margin-top:-60px;
      Margin-left:70px;
      Height:65px;
      Background-color:yellow;
      Overflow-x:scroll;
      Overflow-y:hidden;

    • @codefoxx
      @codefoxx  2 года назад +1

      @@emmanueladu-gyamfi5136 it appears you want the user to be able to scroll left to see the images since you have overflowx auto. To test this , I used a width of 600px and overflowx: auto on the #result container with the exact code I used in this tutorial and its working just fine for me

  • @truonggiangvo21
    @truonggiangvo21 Год назад +1

    If I create an array and push them in there to save in database, it doesnt work, pls hepl

    • @codefoxx
      @codefoxx  Год назад

      Look in description for the complete version

    • @truonggiangvo21
      @truonggiangvo21 Год назад

      @@codefoxx I find out how it work, thank u

  • @victorvivia529
    @victorvivia529 2 года назад

    Thanks! It works now. How could I add some icon with an "X" below each image imaging I made a mistake and now I want to delete any of them...?

  • @sixtusushahemba9419
    @sixtusushahemba9419 Год назад

    Very nice you did explained everything explicitly. Well done! It would be really great if you can make another one that the images could be uploaded to a database and as well be deleted when the user want to delete them. Looking forward for it, thank you so much really enjoy the tutorial.

  • @leinardrapiza2224
    @leinardrapiza2224 2 года назад

    It works, but the image is not showing. Why tho?

  • @georgekimagut225
    @georgekimagut225 2 года назад

    Thanks so much for the help man. Good work

  • @ultrAbdu
    @ultrAbdu 2 года назад

    hi i am searching for something like that, but i want to upload the pictures into my website and they should stay there, how can i do it?
    so i want to click upload, choose images from desktop and the images should be visible in my website.

    • @ultrAbdu
      @ultrAbdu 2 года назад

      i do not want to manually upload them by code with ...

  • @ako4435
    @ako4435 2 года назад

    Ty very simplified and clearly explained.

  • @igwanwan_dagoat1523
    @igwanwan_dagoat1523 Год назад

    Hi, Is it okay to use this code for business purposes?

  • @tomasbokor4440
    @tomasbokor4440 2 года назад

    after using picFile.name, i get undefined, other than that, really helpful video, thx