Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

vinubangs's avatar

Save image as icon onclick button.

I have a button in my webpage in LARAVEL. If I click on that button then an image downloads.

But I need, if click on button then image should be download in icon and after click on that icon downloaded image should be show.

I tired from 2 days. But I did't get any idea. Please give any idea or URL.

0 likes
4 replies
tinfoilman's avatar

Your question is confusing. What do you mean by "download in icon?"

Are these images downloaded to the computer or do you mean loaded in the web page?

vinubangs's avatar

If click on button then an image should be save, like icon and after click on that icon then downloaded image should be open.

tinfoilman's avatar

It's still not clear what you're trying to do. Is there an example you can show?

Please or to participate in this conversation.