Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Download a file tag
Message
 
À
23/05/2002 15:58:40
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00660743
Message ID:
00660775
Vues:
21
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform