468,244 Members | 1,860 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,244 developers. It's quick & easy.

link to PSD imgs -- want them to start downloading..

I have a bunch of Photoshop images on my server, I want when user clicks
on a link to a Photoshop img for it to start downloading (like when you
click on a Word file..) is there a way to do this w/Javascript? thank
you.. Frances

Jul 23 '05 #1
1 955
"Frances Del Rio" <fd***@yahoo.com> skrev i meddelandet
news:34*************@individual.net...
I have a bunch of Photoshop images on my server, I want when user clicks
on a link to a Photoshop img for it to start downloading (like when you
click on a Word file..) is there a way to do this w/Javascript? thank
you.. Frances


Probably not. What happens when you click on a link would in many browsers
be governed by the "mime type action" rules set in the preferences of the
browser.

Server-side, you could send a "Content-Disposition: attachment;
filename="somefile.xxx"" header that would hint to well-behaved browsers
that you'd like to run a save file dialog.

Joakim Braun
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Jan Bols | last post: by
1 post views Thread by m004202002 | last post: by
1 post views Thread by Simon Wigzell | last post: by
15 posts views Thread by Frances Del Rio | last post: by
1 post views Thread by Matt Walker | last post: by
7 posts views Thread by Jetus | last post: by
12 posts views Thread by Bob Bedford | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.