How to upload multiple images with PHP | PHP tutorial
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...
Great job!! Always simple work is more efficient and on the point
Thanks! 👍
i just wish theres a tutorial on how to fetch all images uploaded on the data base thank you sir big help god bless
Hey, maybe this tutorial can help czcams.com/video/_T41wsy0ZT0/video.html
Great tutorials... looking forward for more videos
Thank you, i will do my best
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
Good idea for a tutorial. Thanks.
I appreciate your work, brother!
When I send more than 20 images together, only the first 20 images reach the database. What is the solution?
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.
@@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
Great tutorial my brother!
Glad you liked it!
Please, may I ask,
The highlight_string() that wrapped the export function, is it user-defined or a PHP built-in function?
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.
@@DigitalFox-tutorials
Never knew this! Thanks
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?
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
Thanks
how to save those files in database ....;we create 1 attribut in table thats contains all of those file or what ???
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.
Nice broo
Promo*SM