Hello
I have users uploading their pictures and saved in the database. How I can download a picture from the database ?
Thanks
Hello
I have users uploading their pictures and saved in the database. How I can download a picture from the database ?
Thanks
Hello @abalgir,
Usually, weâre able to download files using a link element. However, since itâs a picture - using a link element will just open the image in a new tab. In order to download a saved image on-click, I think you would need to use an HTML element. If you have a Download Icon, place an HTML element over the icon with the following code (starting with â<â and ending with â>â):
a href=âCurrentPageUserâsProfilePictureâsURLâ download=âCurrentPageUserâsFirstNameâ>Download</a
In this example, weâre downloading the Current Page Userâs profile picture, and setting the name of that downloaded image to be that Userâs first name.
Then group the HTML element and the download icon together in a group that is fixed-width, making sure the HTML element is in front. That should keep everything together, and will download the image on-click. 
Many thanks Fay. I will try it. I tried the link, it was not a clean way 
Right, HTML should do it! No problem 
Sorry Fay, but how to make the HTML element clickable? It is my first time using this type of element.
Regards
My apologies, it looks like the entire element wonât be clickable. You would have to include a word for the link, such as âDownloadâ. Making it:
a href=âCurrentPageUserâsProfilePictureâsURLâ download=âCurrentPageUserâsFirstNameâ>Download</a
Iâll keep looking to see if thereâs a different way to make the entire element clickable, so there wouldnât be any text.
Not to worry
it worked with the DOWNLOAD word. It is a better solution than a link
many thanks
Ok great! My pleasure 
I had to add âhttp:â between href and CurrentFileâs URL for this to work.
meaning that the working link looks like:
<a href=http:"CurrentFile's URL" download> Download </a>
This topic was automatically closed after 70 days. New replies are no longer allowed.