473,657 Members | 2,516 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

link to PSD imgs -- want them to download

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..) how can I do that? thank you.. Frances

Jul 23 '05 #1
15 4571
Frances Del Rio <fd***@yahoo.co m> wrote:
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..) how can I do that? thank you.. Frances


Just link to them and make sure that your server is sending an
appropriate content-type header.

What happens next is entirely down to how the user's browser is
configured and is out of your control as an author. So don't worry
about it.

Steve

Jul 23 '05 #2

"Frances Del Rio" <fd***@yahoo.co m> wrote in message
news:34******** *****@individua l.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..) how can I do that? thank you.. Frances


There's nothing you can do to make an image download instead of displaying
in the browser if the user's browser is configured to display images of that
type. You can only give the user general instructions as to what he/she
needs to do to start a download: "In most browsers under Windows, you can
right-click the image and select a download option from a pop-up menu" or
something worded perhaps a little better than that. (Some will take issue
with "right-click" as rightie-centric language.)

Jul 23 '05 #3


Harlan Messinger wrote:
"Frances Del Rio" <fd***@yahoo.co m> wrote in message
news:34******** *****@individua l.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..) how can I do that? thank you.. Frances

There's nothing you can do to make an image download instead of displaying
in the browser if the user's browser is configured to display images of that
type. You can only give the user general instructions as to what he/she
needs to do to start a download: "In most browsers under Windows, you can
right-click the image and select a download option from a pop-up menu" or
something worded perhaps a little better than that. (Some will take issue
with "right-click" as rightie-centric language.)


Harlan, thank you for yr response... browswers do not display Photoshop
(.psd) images, this is why I was hoping to find a way for them to
download when user clicks on link to that image (which is what I want
either way, instead of display..) oh well... thanks again.. Frances

Jul 23 '05 #4

"Frances Del Rio" <fd***@yahoo.co m> wrote in message
news:34******** *****@individua l.net...

Harlan, thank you for yr response... browswers do not display Photoshop
(.psd) images, this is why I was hoping to find a way for them to
download when user clicks on link to that image (which is what I want
either way, instead of display..) oh well... thanks again.. Frances


If browsers don't display PSDs (and they don't!) then clicking a link to one
*should* cause it to download.

Jul 23 '05 #5
.oO(Frances Del Rio)
Harlan, thank you for yr response... browswers do not display Photoshop
(.psd) images,
You can never be sure about what browsers will do and what not. There's
even a plugin to open zip files directly in the browser ...
this is why I was hoping to find a way for them to
download when user clicks on link to that image (which is what I want
either way, instead of display..)


As already suggested: link to it, send correct content-type. That's it.
If the browser doesn't know how to handle the incoming data it will show
a download dialog.

Micha
Jul 23 '05 #6


Michael Fesser wrote:
.oO(Frances Del Rio)

Harlan, thank you for yr response... browswers do not display Photoshop
(.psd) images,

You can never be sure about what browsers will do and what not. There's
even a plugin to open zip files directly in the browser ...

this is why I was hoping to find a way for them to
download when user clicks on link to that image (which is what I want
either way, instead of display..)

As already suggested: link to it, send correct content-type.


ok, this has be to done server-side, right?? we use java.. so:
response.setCon tentType("image/psd")?
will this download psd?
(this mans this has to done/processed with a form?)
If the browser doesn't know how to handle the incoming data it will show
a download dialog.


well, right now am getting a 404..
thank you for your help.. Frances

Jul 23 '05 #7
Frances Del Rio wrote:

Michael Fesser wrote:
As already suggested: link to it, send correct content-type.

ok, this has be to done server-side, right?? we use java.. so:
response.setCon tentType("image/psd")?
will this download psd?
(this mans this has to done/processed with a form?)


No, no--that sets the content type for the page (or other item) being
generated, not for documents (other other items) that the links on the
page point to. He means:

<a href="..." type="image/psd">

Jul 23 '05 #8
Frances Del Rio <fd***@yahoo.co m> wrote:
Michael Fesser wrote:

As already suggested: link to it, send correct content-type.
ok, this has be to done server-side, right??


Yes.
we use java.. so:
response.setCo ntentType("imag e/psd")?
Dont know about the Java syntax. image/psd is one of the values I've
seen used for Photoshop files. I've also seen:
image/photoshop
image/x-photoshop
application/photoshop
application/psd

As there doesn't seem to be a IANA registered value there isn't a
correct value to use.
will this download psd?
Any link will download the PSD. It's what happens after it's
downloaded (displayed by browsers, displayed by another application,
saved to disc, ask the user) that is out of your control.

Using a sensible content-type header just helps the browser do what
the user wants it to do.
(this mans this has to done/processed with a form?)


No.
If the browser doesn't know how to handle the incoming data it will show
a download dialog.


well, right now am getting a 404..


That's a different problem. I'd worry about making sure the link
actually resolves to a file first and then worry about whether a user
will be able to easily save the file later.

Steve

Jul 23 '05 #9
Harlan Messinger <hm************ *******@comcast .net> wrote:
Frances Del Rio wrote:
Michael Fesser wrote:
As already suggested: link to it, send correct content-type.
ok, this has be to done server-side, right?? we use java.. so:
response.setCon tentType("image/psd")?
will this download psd?
(this mans this has to done/processed with a form?)


No, no--that sets the content type for the page (or other item) being
generated,


Good point. If the PSD is a static file on the server then there's
nothing to do in Java. The server itself should be configured to serve
the correct content-type.
It is possible that the entire response is being sent by Java - the
headers and the PSD content.
not for documents (other other items) that the links on the
page point to. He means:

<a href="..." type="image/psd">


I hope he doesn't mean that. The type attribute of links is pooly
supported by browsers and is only advisory, the actual content-type
header from the server is what is being spoken about here.

Steve

Jul 23 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4046
by: Jan Bols | last post by:
I'm using PHP 4.3 and APACHE2.0. I have a website that requires people to log in before they can download files from my website. A person is logged in if there is a session-variable $logged_in set to TRUE. How can I prevent people from downloading a file (f.e. myfile.doc) without being logged in when they know the direct link to the file (http://www.mysite.com/somedir/myfile.doc)? Putting the file in an obscure place by working with...
2
2713
by: Manatee | last post by:
Hi group. I had been setting background-images for some page elements, which seemed to load absolutely last, and I was wondering if the pics would appear earlier/faster if I used IMG tags instead. If I do stick with background-images, do you think it matters where the rules are -- in an external stylesheet or inline rules, e.g.?
1
1085
by: Frances Del Rio | last post by:
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
1
2074
by: Adrian | last post by:
Using: Mysql 5.0.15 php 5.1.6 apache 2.2.3 I am trying to create a download link for various pdfs which I have stored in a mysql DB. I am having trouble with the header fields when clicking the link.
0
2168
by: kain razial | last post by:
ANYOTHER NEEDS ALSO CONTACT ME.I WILL HELP YOU TO GET THAT TEKLA XSTEEL V 12 DOWNLOAD LINK. http://www.sendspace.com/file/zem32r
0
4005
by: kain razial | last post by:
ANYOTHER NEEDS ALSO CONTACT ME.I WILL HELP YOU TO GET THAT TEKLA XSTEEL V 12 DOWNLOAD LINK. http://www.sendspace.com/file/zem32r
3
2463
by: pd | last post by:
guys, in my web app, i have a simple download button and a href which points to a file on my server, when the user clicks on the button or the link, the file should simply be downloaded to the users machine. now this file is a postgres backup file with the .backup extension. now when i use the button, in FF the file download button pops up and i can save the file, i can also right click the href and go save link as. and it works fine.
7
3664
by: Jetus | last post by:
I am able to download this page (enclosed code), but I then want to download a pdf file that I can view in a regular browser by clicking on the "view" link. I don't know how to automate this next part of my script. It seems like it uses Javascript. The line in the page source says href="javascript:openimagewin('JCCOGetImage.jsp? refnum=DN2007036179');" tabindex=-1> So, in summary, when I download this page, for each record, I would...
12
4013
by: Bob Bedford | last post by:
I've to build a website where the customer can buy an image. I'm thinking in the 2 ways to let people get those images: receive them by Email or send them an image link wich validity is limited in time. The second may help me to know if an image has been downloaded and how many times. How to build such download link ? The informations I'd like is the userid, the datetime limit and the imagefile, off course everything must be encrypted...
0
8842
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8740
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8516
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8617
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6176
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2743
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1733
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.