Solved

Downloading text file

Posted on 1998-09-18
6
182 Views
Last Modified: 2010-04-09
How do I set up a page that lists text files for download (similar to .zip files) to the client's computer - not displayed on the browser.  It seems to automagically work for .zip files, but not for general non-html files.
0
Comment
Question by:lgrove
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 

Expert Comment

by:ru
ID: 1837931
LOOK I THINK U WRITE <A HREF="WRITE THE NAME OF THE FILE TO DOWNLOAD">WRITE WHAT U WANT IT TO SAY HERE IN BLUE</A>
0
 

Author Comment

by:lgrove
ID: 1837932
I've already tried that.  But what I get is the file displayed in the browser.  I want the file to be treated like a .zip file and prompt the user to where they want to save it.
0
 
LVL 27

Expert Comment

by:aburr
ID: 1837933
use  HREF="ftp://xxx.ext">
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 27

Expert Comment

by:aburr
ID: 1837934
you can also ask your viewer to go to their file menu and click "save as file"
0
 

Author Comment

by:lgrove
ID: 1837935
I get "User anonymous unknown."  Now what?
0
 
LVL 8

Accepted Solution

by:
jbirk earned 450 total points
ID: 1837936
In this situation, I think the best solution is to either state next to your text files for download that the user should right click on the link and choose 'save link as...' to download it.
If you don't want to do that the best way is to change it's format, namely zip it up into a zip file, then it will automatically get downloaded and the user can then unzip the text file out of it.
-Josh
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question