This content has been marked as final. Show 3 replies
Make a zipfile from your picture
"jimmylharrell" <email@example.com> a �crit dans le message de news:
> basically I have some text that is hyperlinked to a jpg image. Something
> this: <a href="../.../images/example.jpg">Example Image</a>. Now when the
> clicks on the link it will take them to a page displaying the image. But I
> don't want this.
> What I want is for them to have the dialog box that says "open" or "save".
> You've seen what I'm talking about. Certain types of files forces you to
> download them. Basiclly , allowing them to open the jpg in the current
> window or download it to their desktop and open it up. Is there a
> coldfusion tag to do this? Some thing like onClick=download????. or <cf
> download>?????. Hope I'm posing this question correctly.
no, I know a zip will force a download but I'm talkinga bout with just a plain jpg file.
If you can configure the server using a control panel or other means, you
can alter the mime type, forcing a download on most browsers.
if you hosting is Apache for instance- You would create a new folder, for
just the files you want to force download.
You'd put an .htaccess file in this folder, with this line:
You could not use anything in that folder in any pages-
So if you want to show the image in a page, you'd have to use a copy of it
that wasn't in that special folder.
> no, I know a zip will force a download but I'm talkinga bout with just a plain
> jpg file.