Is there a way to make a link download an image instead of opening in on the browser?
Beggersewen
0
Newbie Poster
Recommended Answers
Jump to PostYes, you can link to a page instead of the image file itself, then using server side code, code your response headers so that the image is downloaded as an attachment.
Jump to PostNo, html is just markup. You have to either control this via server side code as I described above, or change the behavior on the web server regarding how it handles requests for .jpg|.png|.gif files.
All 6 Replies
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
Beggersewen
0
Newbie Poster
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
Beggersewen
0
Newbie Poster
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
harishjan29
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.