By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,652 Members | 1,358 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,652 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
"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.