Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Download a file tag
Message
De
24/05/2002 09:10:37
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:
00660987
Vues:
21
>>
>>
>>***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 :-)


Thanks for the help. I am using W2K Advanced server and IIS5. I tried what you suggested by going to the folder and it's properties. Then I went to HTTP Headers tab and clicked on ADD under the Custom HTTP Headers section.

In this dialog, I entered: ContentDisposition as the custom header name and: attachment as the custom header value.

I then stoped and restarted IIS and tried the above hyperlinks but the image displayed and did not download. I am trying to create a hyperlink to initiate a download of any file type.

Is this the process you meant?

Thanks,

Jerryt
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform