Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hyperlink to a textfile
Message
From
25/03/2004 19:22:18
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
 
To
25/03/2004 15:54:16
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00889776
Message ID:
00889820
Views:
25
I'm not sure if you can "force" a download without resorting to scripting (in the case of a ".txt" file). What a browser does with a particular file seems to be dependent on the file extension when it tries to "open" it; ie. if it "recognizes" it, it takes an associated action (eg. run or download, view as txt, view as pdf, etc).

It appears you can force a download by using "another" extension like ".dat" (ie. the browser will only open a subset of all possible file types).

The other "usual" way a user downloads files explicity is to "right-click" on the link.

>I have a web page that contains hyperlinks to text files so that the user can click the file and download it.
>
>However, if I name the file 'myfile.txt' and hyperlink it, when the user clicks the link, the data is rendered in the users browser. But what I really want is for the browser's Save AS dialog to display asking the user to save the file.
>
>Is there anyway that I can make the hyperlink download the file vs opening the file?
>
>Thanks,
>
>Jerry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform