Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Download a file tag
Message
From
24/05/2002 09:10:37
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00660743
Message ID:
00660987
Views:
20
>>
>>
>>***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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform