0
Multiple file download using php and sql
I'm trying to make images downloadable based on the users choice but not as a zip file, because on user experience. Please can someone help me out
3 Réponses
+ 2
You can do it on the frontend. just load the images dynamically using PHP on frontend from your database. Insert the <img> tag in between anchor tag. Then set the download attribute on anchor tag and point the href to the image URL when the user clicks on the link it will download the image.
Like this.
<a href="image URL" download><img src="image URL"></a>
+ 1
It's helpful, but how can I load images from databasd
0
Storing images in a database is not a good idea, because you can bloat it with bigger ones. You store a reference to the image like the absolute URL then dynamically load it into the img tag.