Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Download a file tag
Message
 
To
23/05/2002 15:58:40
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00660743
Message ID:
00660775
Views:
20
>I normally use the following tag to create a hyperlink which will initiate the downloading of a file.
>
>This works if the file I want the user to download is an EXE. But if the file is a JPG or GIF, the tag displays the image to the user instead of initiating the download.
>
>I know that the user can right click an image and download it, but how can I get any image or file to download instead of viewing?
>
>
>
>***This brings up the save as dialog.
><a href='/temp/myexe.exe'>Click here to download</a>
>
>***This displays the image.
><a href='/temp/myimage.jpg'>Click here to download</a>
>
>
>Thanks,
>
>Jerryt

Create a folder to your downloads and set a custom httpheader for this folder in IIS.
Set it to: ContentDisposition=attachment

That should work with nearly all browsers :-)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform