How to upload multiple images with PHP | PHP tutorial

Sdílet
Vložit
  • čas přidán 7. 09. 2024
  • In this video we are going to see, how easy it is to select and upload multiple files to the server with php.
    Sometimes we want to make things easier for our users, and want to give them the option to upload multiple files at once, but when it comes to it, we think that this must be a very difficult task.
    Its not, watch the video and find out for yourself.
    You can read the tutorial on my website, and download the source code.
    digitalfox-tut...
    Thanks for watching.
    If you like, subscribe.
    If you feel like saying thanks you can by me a coffee:
    www.buymeacoff...

Komentáře • 24

  • @ali-pc7nv
    @ali-pc7nv Před 5 měsíci

    Great job!! Always simple work is more efficient and on the point

  • @chopbar4951
    @chopbar4951 Před rokem +1

    i just wish theres a tutorial on how to fetch all images uploaded on the data base thank you sir big help god bless

  • @constantine9074
    @constantine9074 Před rokem

    Great tutorials... looking forward for more videos

  • @chopbar4951
    @chopbar4951 Před rokem

    i just hope that there is an button that adds another file input then saving it all at once using a one button thank you nice video learned alot

  • @UzimaWomulemiHinda
    @UzimaWomulemiHinda Před rokem

    I appreciate your work, brother!

  • @WolF-GameR-For-Games
    @WolF-GameR-For-Games Před 9 měsíci +1

    When I send more than 20 images together, only the first 20 images reach the database. What is the solution?

    • @DigitalFox-tutorials
      @DigitalFox-tutorials  Před 9 měsíci +1

      Hey, check in the php.ini file the 'upload_max_filesize' and 'post_max_size' settings. Those settings
      are limiting the number of files and size that can be uploaded.
      I think there is the problem.

    • @WolF-GameR-For-Games
      @WolF-GameR-For-Games Před 9 měsíci

      @@DigitalFox-tutorials I use paid hosting. I used these codes in the htaccess file, but it did not work. If I put more than 20 images, only the first 20 images are sent.
      php_value post_max_size 512M
      php_value upload_max_filesize 512M
      php_value memory_limit 1024M
      php_value max_execution_time 300
      php_value max_input_time 300

  • @Ken-td8gc
    @Ken-td8gc Před 9 měsíci

    Great tutorial my brother!

  • @NedumEze
    @NedumEze Před 8 měsíci

    Please, may I ask,
    The highlight_string() that wrapped the export function, is it user-defined or a PHP built-in function?

    • @DigitalFox-tutorials
      @DigitalFox-tutorials  Před 8 měsíci +1

      It's a php built in function. The function takes a string containing PHP code as its parameter and returns the highlighted version of that code. It's very useful in displaying arrays or objects.

    • @NedumEze
      @NedumEze Před 8 měsíci

      @@DigitalFox-tutorials
      Never knew this! Thanks

  • @maxgamerz3095
    @maxgamerz3095 Před rokem

    sir i am running my php program get error (Fatal error: Uncaught Error: Call to undefined function curl_init() in C:\fileaddress:12 Stack trace: #0 {main} thrown in C:fileaddress on line 12) how to resolve it?

    • @DigitalFox-tutorials
      @DigitalFox-tutorials  Před rokem

      What are you trying to do with the curl_init() function ?
      Check out the code:
      digitalfox-tutorials.com/tutorial.php?title=How-to-upload-multiple-files-with-PHP

  • @devwithbrian1534
    @devwithbrian1534 Před rokem

    Thanks

  • @meryameddaif4951
    @meryameddaif4951 Před rokem

    how to save those files in database ....;we create 1 attribut in table thats contains all of those file or what ???

    • @DigitalFox-tutorials
      @DigitalFox-tutorials  Před rokem

      You only need to store the filenames in the database table. Create a column ie. `images` , and then loop through the `names` array and insert each file in the database table.

  • @kermit4877
    @kermit4877 Před rokem

    Nice broo

  • @thomas9850
    @thomas9850 Před rokem

    Promo*SM