Solved

Downloading text file

Posted on 1998-09-18
6
142 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
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
radio button value 3 45
Bootstrap Datable Spinner 3 31
Apostophes in PHP generated form 6 17
Bootstrap 3 icons 3 11
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now